Go to Post You can usually pick out the kids who will grow up to be engineers. They're the ones tearing apart their nintendo, their vcr, their minibike, and their parents' cars. - Tom Line [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2009, 13:14
Shinigami2057 Shinigami2057 is offline
Slackware Is Your New God (Mentor)
AKA: Harry Bock
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Johnston, RI
Posts: 106
Shinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really nice
"No code" each time cRIO is rebooted

Hi all,

We're having a problem loading code onto the bot with the new WPILib update. The first time the cRIO is started, and you run your user program directly, it still says "No Code". Only when you delete the program from memory and run it again does it start working. This did not happen until we updated WPILib and the cRIO/FPGA firmware.

Any one else having this issue? Any ideas?
__________________
One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2009, 16:12
Maxpower57's Avatar
Maxpower57 Maxpower57 is offline
Fabuloso
AKA: Maxwell V.
FRC #2574 (RoboHuskie)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: St. Anthony, MN
Posts: 53
Maxpower57 will become famous soon enoughMaxpower57 will become famous soon enough
Send a message via AIM to Maxpower57
Re: "No code" each time cRIO is rebooted

Did you remember to run the image updater for your cRIO with the v11 Update?
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2009, 16:32
Shinigami2057 Shinigami2057 is offline
Slackware Is Your New God (Mentor)
AKA: Harry Bock
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Johnston, RI
Posts: 106
Shinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really nice
Re: "No code" each time cRIO is rebooted

Quote:
Originally Posted by Maxpower57 View Post
Did you remember to run the image updater for your cRIO with the v11 Update?
Yes.
__________________
One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2009, 16:38
ComradeNikolai ComradeNikolai is offline
Registered User
AKA: Nicholas
FRC #2603 (Team Hornet)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Medina, Ohio
Posts: 203
ComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to behold
Re: "No code" each time cRIO is rebooted

Quote:
Originally Posted by Shinigami2057 View Post
We're having a problem loading code onto the bot with the new WPILib update. The first time the cRIO is started, and you run your user program directly, it still says "No Code". Only when you delete the program from memory and run it again does it start working. This did not happen until we updated WPILib and the cRIO/FPGA firmware.
For clarification: are you asking if you have to use "FIRST->Undeploy" before using "FIRST->Download"? Are you asking if you have to use "FIRST->Undeploy" before running the program off of the cRIO RAM?

If the former, this is normal procedure, and a good idea even if you could get away with not undeploying; your cRIO will eventually need formatting again if you download without undeploying. Always undeploy before downloading. Also, I believe you have to undeploy to run the program with "Run" or "Debug."
__________________
I cut myself shaving with Occam's razor.

Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2009, 18:45
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: "No code" each time cRIO is rebooted

Have you tried viewing the console through the serial port? Sometimes if there is an error in the code it will not run it and you will get the no code message. View the entire boot text that it displays, the error should come up the the end if this is the case.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
  #6   Spotlight this post!  
Unread 01-02-2009, 02:57
ExarKun666's Avatar
ExarKun666 ExarKun666 is offline
Ben Error/MC Ben/NC Ben
AKA: Ben Kellogg
FRC #2429 (LCEC)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: La Caņada, CA
Posts: 208
ExarKun666 is an unknown quantity at this point
Send a message via AIM to ExarKun666 Send a message via MSN to ExarKun666 Send a message via Yahoo to ExarKun666
Re: "No code" each time cRIO is rebooted

Quote:
Originally Posted by Shinigami2057 View Post
Hi all,

We're having a problem loading code onto the bot with the new WPILib update. The first time the cRIO is started, and you run your user program directly, it still says "No Code". Only when you delete the program from memory and run it again does it start working. This did not happen until we updated WPILib and the cRIO/FPGA firmware.

Any one else having this issue? Any ideas?
our team has had this problem, what we did was (if tethered) make sure you are downloading the .out file, if you are go to FIRST then click download, if no progress bar comes up there must be setting that still needs to be changed. If the progress bar does come up then restart the bot, first it says No Comms then No Code, just be patient, it takes ours about 4 min or less (depending) until it says the voltage of the battery. Hope this helps
__________________
Ben Kellogg




Team Sites: [LCEC Site] [FRC/FLL Site] [LCEC Blog]
Reply With Quote
  #7   Spotlight this post!  
Unread 01-02-2009, 12:26
Shinigami2057 Shinigami2057 is offline
Slackware Is Your New God (Mentor)
AKA: Harry Bock
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Johnston, RI
Posts: 106
Shinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really nice
Re: "No code" each time cRIO is rebooted

Quote:
Originally Posted by ComradeNikolai View Post
For clarification: are you asking if you have to use "FIRST->Undeploy" before using "FIRST->Download"? Are you asking if you have to use "FIRST->Undeploy" before running the program off of the cRIO RAM?

If the former, this is normal procedure, and a good idea even if you could get away with not undeploying; your cRIO will eventually need formatting again if you download without undeploying. Always undeploy before downloading. Also, I believe you have to undeploy to run the program with "Run" or "Debug."
No, we're using just the Run dialog, where the program is loaded directly into memory. Our code loads and shows up in the Remote Systems panel, but the driver station still says "No Code". After deleting the code from the panel (right-click 'project.out' and click Delete) and re-running it (again directly from memory), it works fine until you reboot the cRIO.

It's not a huge problem - it only takes about 10 seconds do load-unload-load and get it working, but it is a little annoying.
__________________
One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-02-2009, 12:46
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: "No code" each time cRIO is rebooted

Create a new default project and download it.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
Reply With Quote
  #9   Spotlight this post!  
Unread 01-02-2009, 13:46
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: "No code" each time cRIO is rebooted

are you clicking Run or Run Kernel Task? you have to Run Kernel Task W/ the proper setup
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #10   Spotlight this post!  
Unread 01-02-2009, 16:56
Analog's Avatar
Analog Analog is offline
Registered User
AKA: Bob Most
FRC #2619 (The Charge)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Midland, Michigan
Posts: 53
Analog will become famous soon enoughAnalog will become famous soon enough
Re: "No code" each time cRIO is rebooted

Use the console via RS-232

if you've reflashed, then make sure you do a full power down.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cRio losing connection when "run as startup" mgurgol Programming 2 12-01-2009 12:18
Team 1261 - cRIO on 2008 "Longshot" Tanner Robot Showcase 2 31-12-2008 12:44
"Battery: No Code" after uploading .out file to cRIO knine143 FRC Control System 1 20-12-2008 22:14
Getting two Vex controllers to "talk" to each other thefro526 Programming 1 28-05-2007 11:59
Coolist "bot" in each division Michael King Championship Event 46 21-04-2003 18:20


All times are GMT -5. The time now is 12:57.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi