Go to Post Analyze, adjust, anticipate. Don't panic. - PayneTrain [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 04-08-2010, 03:03 PM
masoug's Avatar
masoug masoug is offline
Food Consumer
FRC #0114
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Planet Earth
Posts: 78
masoug is an unknown quantity at this point
Exclamation No Robot Code!!!

Hi,
We are using a Vista machine with WindRiver to program the cRIO. When we install the updates (for WindRiver), the robot complains with "No Robot Code". We re-imaged the cRIO with version 20 and it still does not work. We downloaded the code and rebooted the robot, but it still does not work.

Does anyone else have the same problem?

Any help will be appreciated.

-Masoug
__________________

JabbaScript

Last edited by masoug : 04-08-2010 at 03:06 PM.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-08-2010, 03:19 PM
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,763
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: No Robot Code!!!

Masoug,
A team in Minnesota had the same problem last weekend. They claimed it was a Vista machine that was causing the problem but I think it was more the type of machine than the operating system. Have you been using this machine all through the season or is this something new? They switched to an XP machine and were able to download just fine. It had me and the NI rep scratching our heads. If it works use it in good health.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-08-2010, 03:48 PM
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: No Robot Code!!!

Install NetConsole (from the WPI update site) and post what is says. It could give a bit more insight about what the root problem is
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #4   Spotlight this post!  
Unread 04-09-2010, 01:30 AM
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 243
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: No Robot Code!!!

Generally the cause for sudden "No Robot Code" is a missing symbol. WindRiver is set up to link dynamic executables so it doesn't report missing symbol errors at build time. NetConsole will definitely help you determine whether this is the cause, as any missing symbols will be reported to the console when the cRIO attempts to run UserProgram.out. They will be name mangled (C++'s way of converting "foo::bar::baz(int a, int b, int c)" into a unique name of only upper/lowercase/numbers/underscores) but you should be able to decipher it pretty easily. I've sometimes found a full rebuild fixes it. A particularly common cause is missing symbols in the WPILib camera code.
Reply With Quote
  #5   Spotlight this post!  
Unread 04-09-2010, 01:42 PM
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: No Robot Code!!!

You can also "Undeploy", reboot the robot, then load using the Debug method (described in C++ Getting Started guide). When loading this way, any unresolved symbols will be reported to you. In addition, if the program is crashing, the debugger may help you figure out where and/or why.
Reply With Quote
  #6   Spotlight this post!  
Unread 04-09-2010, 03:51 PM
masoug's Avatar
masoug masoug is offline
Food Consumer
FRC #0114
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Planet Earth
Posts: 78
masoug is an unknown quantity at this point
Re: No Robot Code!!!

Hmmm, okay. I guess I will try it. Thanks!!!

-Masoug
__________________

JabbaScript
Reply With Quote
  #7   Spotlight this post!  
Unread 04-21-2010, 08:22 PM
masoug's Avatar
masoug masoug is offline
Food Consumer
FRC #0114
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Planet Earth
Posts: 78
masoug is an unknown quantity at this point
Re: No Robot Code!!!

It still does not work...
The executable is still there, but the DS is not recognizing it and cannot execute the program.
Plus, NetConsole doesn't work either, nothing shows up on the NetConsole client even after changing the "ni-rt.ini" file and rebooting the robot, nothing comes up.
Is there a step we were supposed to do right after competition that involved this?

Is there a way to manually execute the "FRC_UserProgram.out" file?

And now WindRiver cannot connect to the cRIO,
Quote:
Wed Apr 21 17:27:05 2010
Target name is 10.01.14.2
tgtsvr (VxWorks6x_10.01.14.2@VistaProX9): Wed Apr 21 17:27:05 2010
WTX Library version: 4.1.1.22
Tgtsvr core version: 4.1.1.17
Wind River Target Server: Win32 version
Connecting to the target agent ...
... switching to WDB4 mode ... ... succeeded !
Loading plug-in for VxWorks... succeeded.
Checking License... OK
VxWorks plugin version: 4.1.1.11
Attaching elf OMF reader for PPC CPU family... succeeded.

Differences for module "vxWorks" segment's address 0x100000:
Offset Target Value Host Value
0x152 0x9d 0x62
0x153 0xd0 0x5c
0x49d 0x09 0x0c
0x49e 0xaf 0xc8
Stopping dump. Other errors might exist.

Error: The systems running on the target and loaded into the target server memory are different.
Either wrong core file is selected on the host or text section is corrupted on target side.
Error during target server core initialization
Target Server will exit
How does this entire system work?

THANKS!!!

-Masoug
__________________

JabbaScript

Last edited by masoug : 04-21-2010 at 08:27 PM. Reason: More Questions...
Reply With Quote
  #8   Spotlight this post!  
Unread 04-21-2010, 08:42 PM
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: No Robot Code!!!

are you sure Wind River is set to look at the right cRIO image?

also, is the "No App" switch set on the cRIO?
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #9   Spotlight this post!  
Unread 04-21-2010, 10:01 PM
masoug's Avatar
masoug masoug is offline
Food Consumer
FRC #0114
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Planet Earth
Posts: 78
masoug is an unknown quantity at this point
Re: No Robot Code!!!

Yes, I double checked that WindRiver is downloading the right code. I hope I don't sound too wierd saying this, but what is the no app switch? THANKS!!!-Masoug
__________________

JabbaScript
Reply With Quote
  #10   Spotlight this post!  
Unread 04-21-2010, 11:15 PM
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: No Robot Code!!!

It's one of the switches on the cRIO (next to the Serial out, no FPGA, etc). When set, it prevents the user code from running. Often used because many LabVIEW team's code starves the downloader of CPU time. I believe the edge nearest the end of the cRIO being down indicates the off position, but try it both ways to be sure

I didn't mean the .out file that is your user code. If Wind River doesn't have a local copy of the current cRIO image the serial port communications will fail. I don't know the exact instructions of how to point wind river to the right file, but I think they were in last year's control system manual.

Also, are you using serial CAN? If you have the Console Out switch set on it will take up the serial port, causing the CAN plugin to fail and possibly mess up all your other code.

With NetConsole, did you manually type in the IP of the cRIO into the box? I've had trouble getting it to auto-connect and I just type it in every time
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #11   Spotlight this post!  
Unread 04-22-2010, 03:11 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: No Robot Code!!!

Just to make sure, do you have WPILib update 4.3?
__________________
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
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
No Robot Code SidneySalvo NI LabVIEW 25 02-18-2010 05:09 PM
No Robot Code After downloading Code tutkows1 FRC Control System 2 02-08-2010 12:51 AM
No Robot Code eaglesfan10 C/C++ 6 02-03-2010 10:34 PM
Compressor Code causes No Robot Code Error sircedric4 C/C++ 25 02-03-2010 10:13 AM
No Robot Code mlim NI LabVIEW 10 01-21-2010 05:33 PM


All times are GMT -5. The time now is 09:24 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