Go to Post Be civil in all things and you will get far. - Wetzel [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 09-02-2011, 15:58
Mtg Ruler Mtg Ruler is offline
Registered User
FRC #1986 (Team Titanium)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Lee's Summit, MO
Posts: 21
Mtg Ruler is an unknown quantity at this point
Cannot load code onto the cRIO

Yesterday afternoon, our cRIO stopped accepting our LabVIEW code except for rare instances. As debugging has continued, we eventually got to the point today where code could be uploaded only after a reimage. We think the problem may be in the switches on the cRIO and flipped the Safe Mode switch to off based on some documentation. (http://decibel.ni.com/content/docs/DOC-2632). Now, the cRIO will not reimage because the code is corrupted, it said to go into safe mode and do it, but we could not connect to the 0.0.0.0 IP. I am also afraid that once the cRIO is successfully reimaged, we will still only be able to download code once.

Any Suggestions?

Things already tried, mostly in chronological order:
Checked IP addresses (correct)
Tethered it (failed to download code)
Ran in debug mode (failed to download code)
Pinged the cRIO (got response, but has not been tried since code corrupted)
restarted cRIO (no change)
changed robot battery (no change)
changed computers (no change)
ensured all files were up to date and reimaged to v27 (code loaded once)
reimaged to v25 (code loaded once)
Noticed Status light flashing 3 times, indicating safe mode
looked at switches, switched Safe mode to off (reimaging failed, status light still flashing 3 times, even after a power cycle)
switched Safe mode to on (reimaging still did not work)
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2011, 16:40
randalcr's Avatar
randalcr randalcr is offline
Programming Mentor
AKA: Chance Randall
FRC #0476 (Wildcats)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ponca City
Posts: 82
randalcr is an unknown quantity at this point
Re: Cannot load code onto the cRIO

did you reboot the Crio after you changed the dip switch position? we had one Crio that had a similar problem and rebooting it after turning the safe mode switch on allowed us to image it.
__________________
-Time is the best teacher...unfortunately it kills all of its students. --Robin Williams
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2011, 16:41
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,846
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Cannot load code onto the cRIO

The original problem of not being able to download your LabVIEW code could be due to an unconstrained loop in your code. An easy check is to test solely with unaltered default framework after your next successful reimaging.
Download a fresh default project, then download it again to see if that works right or gives you problems.
If the default code works without your modified code ever getting in the way, then it's probably your code that's sucking up all the CPU cycles and there are easy ways to further test for that.


You probably know all this, but I'll just repeat it.
The procedure to clear and reimage using Safe Mode is to
  1. Flip the Safe Mode switch on & cycle the power
  2. Use the cRIO Imaging Tool (you'll get a warning that it cannot be reimaged, but proceed anyway)
  3. Flip the Safe Mode switch off & cycle the power
  4. Use the cRIO Imaging Tool again to download v27
  5. Cycle the power and watch the cRIO yellow status LED. It should only come on once.
  6. Build and Run as startup an unchanged default project
Then, as a follow up:
  1. Test the project
  2. Confirm that you can download again
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 09-02-2011 at 16:44.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2011, 19:09
Mtg Ruler Mtg Ruler is offline
Registered User
FRC #1986 (Team Titanium)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Lee's Summit, MO
Posts: 21
Mtg Ruler is an unknown quantity at this point
cRIO is working again

The cRIO now does work, and code is downloading fine.

The problems: the switches were in the wrong position, and a talk with someone from NI told us the correct arrangement (all switches with the white part in the on position)

We were running an unending while loop in periodic tasks. This was fixed by deleting that code and rewriting it without a while loop.

Thank you for all your help!
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


All times are GMT -5. The time now is 16:46.

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