Go to Post They really should put warning signs at all entrances: "WARNING! FIRST IS CONTAGIOUS!" - KenWittlief [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 15-01-2010, 11:54
bradleat bradleat is offline
Registered User
FRC #1414
 
Join Date: Jan 2010
Location: Atlanta
Posts: 11
bradleat is an unknown quantity at this point
No Code Error

I am using Windriver C++ and have installed all of the updates. My development PC has been set to the ip 10.14.14.6 (or whatever it was supposed to be, I am working from home right now). I have installed the Driver software on the development PC.

I compile the example code in Windriver and use the FIRST downloader to upload the code to the CRIO. It doesn't tell me if it worked, but I assume it doesn't because when I restart the cRIO I get the no Code error from the Driver software.

Any Help?
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2010, 12:36
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 Code Error

This can happen for two reasons - you don't have code (sounds like you do) or the code is failing to execute.

First, check that the FIRST Downloader in Windriver is downloading the program you expect and that your team # is set properly. Both of these are set in Windows->Preferences->FIRST Downloader Preferences.

Failure to execute is often caused by a mismatch in version between what your code is compiled against (WPILib in Windriver) and the cRIO's FPGA image on the robot.

Have you downloaded and applied all updates to Windriver?
Have you imaged your cRIO with the latest C++ image version (version 19)?

Update everything, recompile, and re-download your code. Restart your robot. If you continue to have problems, it is helpful to either:
A. Undeploy the program, reboot the robot, and load your code using the Debug facility in Windriver -- this will give you the ability to get any errors back as the program is loaded, and also to know your code is getting there.

-or-

B. Attach a serial cable to your cRIO's serial port, turn on the "console out" DIP switch on the cRIO, reboot your robot and watch the console messages on a terminal program on your laptop. This can give further details.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2010, 16:46
bradleat bradleat is offline
Registered User
FRC #1414
 
Join Date: Jan 2010
Location: Atlanta
Posts: 11
bradleat is an unknown quantity at this point
Re: No Code Error

Well i get some error codes, I suppect they are related to hardware failure, but I have to rule out the software side first.

I attached a screen copy of the errors.

This error get thrown when I try to debug from Windriver following the instructions from the Getting Started with C.pdf document
Attached Thumbnails
Click image for larger version

Name:	error.jpg
Views:	111
Size:	99.4 KB
ID:	8306  
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2010, 19:35
bradleat bradleat is offline
Registered User
FRC #1414
 
Join Date: Jan 2010
Location: Atlanta
Posts: 11
bradleat is an unknown quantity at this point
Re: No Code Error

Does anybody know what this error is about?
Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2010, 00:05
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: No Code Error

You say you installed all the updates, but did you reimage the cRIO afterwards? I've never used C++ on an FRC robot (I'm a LabVIEW guy), but those errors make me think that you're trying to run 2010 code on a 2009 image. Make sure the cRIO is updated with v19.
Reply With Quote
  #6   Spotlight this post!  
Unread 16-01-2010, 02:06
bradleat bradleat is offline
Registered User
FRC #1414
 
Join Date: Jan 2010
Location: Atlanta
Posts: 11
bradleat is an unknown quantity at this point
Re: No Code Error

Quote:
Originally Posted by Alan Anderson View Post
You say you installed all the updates, but did you reimage the cRIO afterwards? I've never used C++ on an FRC robot (I'm a LabVIEW guy), but those errors make me think that you're trying to run 2010 code on a 2009 image. Make sure the cRIO is updated with v19.
Yes, v19 (the driver's station confirms). Windriver has also been updated (it doesn't communicate if it's not updated)
Reply With Quote
  #7   Spotlight this post!  
Unread 16-01-2010, 12:55
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 453
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
Re: No Code Error

We had a similar problem, where we could load code to the robot. The driver station indicated communication, but no robot code.

We tried reimaging to v19 a second time, as well as updating the workbench a second time with no positive results. One of our programmers found that the update.cmd file, found in WorkbenchUpdate20100107.exe, only installs the update to the default filepath. You can change the install paths for the update to your actual install directory. You can change update.cmd to install to the correct directory, or you can copy the contents of the update to your Windriver directory and overwrite the old files. The first method you need to run update.cmd after you make the change.

Below is the snapshot of the change we made in notepad++.
Attached Thumbnails
Click image for larger version

Name:	fix.JPG
Views:	75
Size:	128.0 KB
ID:	8310  
__________________
Mike Copioli
CTRE Hardware Engineer
http://www.ctr-electronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions
Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
Reply With Quote
  #8   Spotlight this post!  
Unread 16-01-2010, 23:47
bradleat bradleat is offline
Registered User
FRC #1414
 
Join Date: Jan 2010
Location: Atlanta
Posts: 11
bradleat is an unknown quantity at this point
Re: No Code Error

Well mine is in the defualt install path, I am just going to try another computer setup and see if I can narrow the problem down (computer, cRIO, installation error, my presence) etc
Reply With Quote
  #9   Spotlight this post!  
Unread 19-01-2010, 22:16
zombiezen's Avatar
zombiezen zombiezen is offline
Registered User
AKA: Ross Light
FRC #0973 (Greyhound Robotics)
Team Role: College Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Atascadero
Posts: 12
zombiezen is a jewel in the roughzombiezen is a jewel in the roughzombiezen is a jewel in the roughzombiezen is a jewel in the rough
Re: No Code Error

I'm having exactly the same problem. I have re-installed everything at least three times and installed all updates, but the execution fails with the same error message as previously described.

Just out of curiosity, what operating system are you on? I'm on Windows 7, but I don't think that should affect anything.
Reply With Quote
  #10   Spotlight this post!  
Unread 19-01-2010, 22:19
bradleat bradleat is offline
Registered User
FRC #1414
 
Join Date: Jan 2010
Location: Atlanta
Posts: 11
bradleat is an unknown quantity at this point
Re: No Code Error

Well I have narrowed it down to an install error, not a Windows 7 inherent error. So check for problems caused by installation (maybe UAC or the like), i am using the classmate with a Windriver install for now.

However the only project I can build (and not all the time correctly, (random error that aren't part of the ISO C++ Standard) is the sample project, so i blame this level of malfunctioning on FIRST.
Reply With Quote
  #11   Spotlight this post!  
Unread 19-01-2010, 22:25
bradleat bradleat is offline
Registered User
FRC #1414
 
Join Date: Jan 2010
Location: Atlanta
Posts: 11
bradleat is an unknown quantity at this point
Re: No Code Error

Well I have narrowed it down to an install error, not a Windows 7 inherent error. So check for problems caused by installation (maybe UAC or the like), i am using the classmate with a Windriver install for now.

However the only project I can build (and not all the time correctly, (random error that aren't part of the ISO C++ Standard) is the sample project, so i blame this level of malfunctioning on FIRST.
Reply With Quote
  #12   Spotlight this post!  
Unread 19-01-2010, 23:16
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: No Code Error

Quote:
Originally Posted by bradleat View Post
Well I have narrowed it down to an install error, not a Windows 7 inherent error. So check for problems caused by installation (maybe UAC or the like), i am using the classmate with a Windriver install for now.

However the only project I can build (and not all the time correctly, (random error that aren't part of the ISO C++ Standard) is the sample project, so i blame this level of malfunctioning on FIRST.
I too blame this magic "FIRST" creature.

What do you mean that it doesn't build correctly? The same code built multiple times gives errors? I don't think that the code would be compiled again if unchanged.
Reply With Quote
  #13   Spotlight this post!  
Unread 20-01-2010, 10:14
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 Code Error

Quote:
Originally Posted by bradleat View Post
Well i get some error codes, I suppect they are related to hardware failure, but I have to rule out the software side first.

I attached a screen copy of the errors.

This error get thrown when I try to debug from Windriver following the instructions from the Getting Started with C.pdf document
Unresolved symbols dealing with the FPGA at runtime is usually caused by a mismatch between the running cRIO image version (which contains the FPGA image and the runtime binary library that completes the binary built in WindRiver) and the version of WPILibary on your development computer that your binary is compiled against.
Less often it can be caused by other issues.
You said you narrowed it to "an install error". Could you be more specific about what you found to help others that may be encountering the same issue?
Reply With Quote
  #14   Spotlight this post!  
Unread 20-01-2010, 18:17
CardcaptorRLH85's Avatar
Happy Birthday! CardcaptorRLH85 CardcaptorRLH85 is offline
The master of the cards ^_^
AKA: Raa'Shaun H.
FRC #0322 (F.I.R.E. "Flint Inspires Real Engineers")
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Michigan, USA
Posts: 59
CardcaptorRLH85 is an unknown quantity at this point
Send a message via ICQ to CardcaptorRLH85 Send a message via AIM to CardcaptorRLH85 Send a message via MSN to CardcaptorRLH85 Send a message via Yahoo to CardcaptorRLH85
Re: No Code Error

I have a question, does anyone have actual compiling code for this year using the ItreativeRobot class yet? While the rest of the team is building the physical robot I'm trying to figure out this years WPILib by porting the code from our 2009 bot to 2010. I've completely pulled the camera sections and updated my Dashboard/DriverStation methods to the versions used in the 2010 Vision Example. However, I still get a persistent No Code Error on the Robot when trying to use this code. I'm thinking that I may have some small thing that has been left behind not being caught by the compiler. Since I can't find a 2010 IterativeRobot example included in the WindRiver examples I'm in need of some (working) IterativeRobot based code. Thanks a bunch ^_^
__________________

Reply With Quote
  #15   Spotlight this post!  
Unread 20-01-2010, 19:23
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 Error

There is a semi random error in the WR updater, it extracts the files to a temporary folder, but doesn't move them to the actual folder. this might be whats happening.
I think the update folder is in C:\ so look around (or search CD)
__________________
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
Code error? niagra127 Programming 12 13-02-2008 20:35
Code Error? darkdwarven Programming 1 08-02-2008 00:42
Error in code light on, trouble finding error Bryan Herbst Programming 16 12-10-2007 21:59
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07
C++ Code Error? Adam Shapiro Programming 9 20-01-2003 13:24


All times are GMT -5. The time now is 14:31.

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