Go to Post Nominate your mentor for WFA, it's the best way to say 'Thank You'. - Brandon Martus [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 02-17-2010, 04:38 PM
RevusHarkings RevusHarkings is offline
Registered User
FRC #3396
 
Join Date: Feb 2010
Location: Richmond Hill
Posts: 5
RevusHarkings is an unknown quantity at this point
Robot code won't load

We are unable to load code to the cRIO at all. In WindRiver, all the settings are properly set, but Deploying code stopped working after a while. For a while, we manually put the .out file into the /system/startup directory on the cRIO, and that worked for a while, but then that stopped working too. Instead of loading the new code, it used an older version of the code we were using. We tried re-imaging the cRIO (image v20), and while it deleted the old code, it didn't fix the issue with being unable to load in any new code. Does anyone have an idea what's going on?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-17-2010, 04:56 PM
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Robot code won't load

Quote:
Originally Posted by RevusHarkings View Post
We are unable to load code to the cRIO at all. In WindRiver, all the settings are properly set, but Deploying code stopped working after a while. For a while, we manually put the .out file into the /system/startup directory on the cRIO, and that worked for a while, but then that stopped working too. Instead of loading the new code, it used an older version of the code we were using. We tried re-imaging the cRIO (image v20), and while it deleted the old code, it didn't fix the issue with being unable to load in any new code. Does anyone have an idea what's going on?
You probably need to connect a terminal program (TeraTerm is great) to the cRio serial port and see what's happening as the unit boots.
It wouldn't hurt to check the flash file system...

-> chkdsk "/c"
Reliance File System Integrity Checker
Datalight Reliance v3.2.2 Buid 1376BV
VxWorks Editio for ppc603
Copyright (c) 2003-2008 Datalight, Inc. All Rights Reserved Worldwide.
Checking 19M Byte drive

Checkingcritical meta blocks...............................1OK
Checking indices........................................... .5OK
Checking all drectory contents and inode...................79OK
Cecking allocation map.....................................OK
Checkng for stranded blocks.........................6891OK
relFsChk complete.

Volume Information:
125,583,360 bytes in volue
22,847,488 bytes i 138 files
163,840 ytes in 20 directories
49,152 bytes system ovrhead
102,522,880 byts available for use

8,192 bytes per block
15,330 total block in volume
12,515 locks available
value =0 = 0x0

Edit: the output of the chkdsk command clearly lost some characters. :-(
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)

Last edited by gvarndell : 02-17-2010 at 04:58 PM. Reason: note the dropped characters in pasted text
Reply With Quote
  #3   Spotlight this post!  
Unread 02-18-2010, 03:09 PM
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: Robot code won't load

are you building the code?
are you uploading the just built code?
are you sure you are uploading the just build code?
try rebuilding (right click project> Rebuild) also
__________________
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
  #4   Spotlight this post!  
Unread 02-18-2010, 03:19 PM
kennypu kennypu is offline
Registered User
FRC #2467
 
Join Date: Jan 2010
Location: Hawaii
Posts: 40
kennypu is an unknown quantity at this point
Re: Robot code won't load

also, note:
if you're using a new project than the old one, don't forget to point the FIRST downloader to your new project's .out file.
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
How do I load the default code? HarryScheiner C/C++ 7 02-11-2009 11:52 AM
**FIRST EMAIL**/Important Pit Load In and Load Out Information Mark McLeod FIRST E-Mail Blast Archive 7 04-11-2008 08:16 AM
Can we load 2004 code? colt527 Programming 5 02-15-2005 07:48 PM
Album won't load... Lisa Perez Website Design/Showcase 3 07-05-2004 12:41 AM
How long does it take you to load the default code? vegasmcse Robotics Education and Curriculum 10 11-03-2003 09:41 PM


All times are GMT -5. The time now is 10:39 AM.

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