Go to Post Hyper, I want to marry your robot. - Keys [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 12-02-2009, 16:09
greekgod8591 greekgod8591 is offline
Registered User
FRC #2577
 
Join Date: Feb 2009
Location: New Jersey
Posts: 7
greekgod8591 is an unknown quantity at this point
Cannot get Code to Download to cRIO

Hey,
We're currently trying to get our code to dl to the cRIO unsuccessfully.

Here's the situation:
Running WindRiver
Update 3 installed and cRIO flashed
Code completely compiled and not using std c lib

We turn on the control system, undeploy, reset, download, reset and it reads no code, yet in WindRiver it shows the file as downloading. What could be happening here?
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2009, 18:02
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: Cannot get Code to Download to cRIO

We're getting the same error.
cRIO fully updated, as is driver station.
C++ code compiles, downloads.
Battery: No Code.
The funny thing is that when we download the cRIO Image in (reformat the cRIO using v11) and we reset it, the default code in the image works fine. Everything works as normal.
Any help would be great.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2009, 18:21
greekgod8591 greekgod8591 is offline
Registered User
FRC #2577
 
Join Date: Feb 2009
Location: New Jersey
Posts: 7
greekgod8591 is an unknown quantity at this point
Re: Cannot get Code to Download to cRIO

Yes we are again same in the other issues you discussed.

Are all your IPs correct? Ours are correct and we can ping all of them. Let's brainstorm some possibly issues.
Could we be sending the wrong outfile? Are there any options other than the default out. Did you try doing a clean build of the project?
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2009, 19:39
csshakka csshakka is offline
Registered User
FRC #0818
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Warren, MI
Posts: 21
csshakka is an unknown quantity at this point
Send a message via AIM to csshakka Send a message via MSN to csshakka
Re: Cannot get Code to Download to cRIO

Were experiencing same issue. Seems like no matter what we do, the drive station reads no code and only default will work. I can see the processes running on the crio so i know it is working, but cannot my code on.

When i get to robotics tomorrow, i was going to try making a new example project and just copying some simple code to work, using the default names to see if something went awry renaming files.
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2009, 22:17
Johno Johno is offline
Registered User
FRC #2013
 
Join Date: Dec 2008
Location: Stayner, Ontario
Posts: 2
Johno is an unknown quantity at this point
Re: Cannot get Code to Download to cRIO

Check you downloader preferences under Window preferences to make sure that you are downloading the correct .out file.

Running the install program is not the only step required to flash the cRIO. We had a similar problem until we remembered to run the cRIO imaging tool to actually imprint the image. Instructions for this are in the 5 chapter Control System Manual.
Reply With Quote
  #6   Spotlight this post!  
Unread 13-02-2009, 21:55
gm342 gm342 is offline
Registered User
FRC #0342
 
Join Date: Feb 2009
Location: Charleston, SC
Posts: 7
gm342 is an unknown quantity at this point
Thumbs down Re: Cannot get Code to Download to cRIO

342 is also having the same problem. Our problem started yesterday too. We are not getting any gcc error messages on our code. We can download the code to the cRIO with FIRST->Download but on reboot, the DS reads No code.

When we attempt to run last launched or debug last launched we get Symbol errors. The unresolved symbols have varied throughout the course of today. These include: Joystick::Joystick(int), Solenoid::Solenoid(int), Solenoid::Solenoid(int, int), DigitalInput:igitalInput(int), Victor::Victor(int), Compressor::Compressor(int, int). As best I can tell, all of these are acceptable constructors from WPILib. And we are successfully linking this library in on the computer as we're not getting any output errors from gcc or the linker.

We have not changed any settings in Eclipse/Windriver. We are also running on the latest cRIO image (v11), FRC Update (3.0 and 3.0a tried), and DS (previous image and the new LCD custom text 2009-01-22c1).

No success yet to report on this problem.
Reply With Quote
  #7   Spotlight this post!  
Unread 14-02-2009, 19:37
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: Cannot get Code to Download to cRIO

Yeah,
Same problem for my code. I created two files from the two WPI library files Robotdrive (*.cpp and *.h). I appended every Robotdrive construct and member with RL to make a unique name. I added these two new files to a known good project and built (clean)with no errors. Next, undeploy, reset, download and No code error.

This is frustrating. After verifying that I can run the undeploy, reset, download sequence with simplerobot.out (provided with version 3.0) with my laptop, I switched to our new output file *.out and nothing (No code error).

At one point I introduced a simple typo error in the two new files and yep, the compiler found the typo.

Thoughts anyone on what to do next? Works with *.out from library but not with ever so slightly modified version of Wpilib files Robotdrive (*.cpp and *.h)?
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #8   Spotlight this post!  
Unread 15-02-2009, 11:26
Sentient's Avatar
Sentient Sentient is offline
Registered User
FRC #0639 (Code Red)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ithaca
Posts: 21
Sentient is on a distinguished road
Re: Cannot get Code to Download to cRIO

I don't know if this will help, but I made a quick video of how to download the code to your bot: http://www.youtube.com/watch?v=JfBfPC4VftM
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2009, 09:08
Kruuzr Kruuzr is offline
Mentor - electrical, software
AKA: Steve Cote
FRC #1922 (Ozram)
Team Role: Engineer
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Henniker, NH
Posts: 33
Kruuzr has a spectacular aura aboutKruuzr has a spectacular aura about
Re: Cannot get Code to Download to cRIO

This problem often has NOTHING to do with the downloading process. One wierd aspect of VxWorks/PowerPC compiler-linker is that if you make a call to a function that does not exist, the compiler/linker will not give an error. What happens is that it fails to load the module (your code) which results in a No Code scenario. We've run into this a few times and had to waste a lot of time tracking down what function(s) were missing.

Good Luck

Steve C
Reply With Quote
  #10   Spotlight this post!  
Unread 16-02-2009, 09:43
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Question Re: Cannot get Code to Download to cRIO

One weird aspect of VxWorks/PowerPC compiler-linker is that if you make a call to a function that does not exist, the compiler/linker will not give an error.

Wow! Seems like this shouldn't happen. Is there a software switch that needs to be enabled in order to turn on the error indicator in the default configuration version we have been given as examples?
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #11   Spotlight this post!  
Unread 16-02-2009, 12:52
Kruuzr Kruuzr is offline
Mentor - electrical, software
AKA: Steve Cote
FRC #1922 (Ozram)
Team Role: Engineer
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Henniker, NH
Posts: 33
Kruuzr has a spectacular aura aboutKruuzr has a spectacular aura about
Re: Cannot get Code to Download to cRIO

Quote:
Originally Posted by marccenter View Post
One weird aspect of VxWorks/PowerPC compiler-linker is that if you make a call to a function that does not exist, the compiler/linker will not give an error.

Wow! Seems like this shouldn't happen. Is there a software switch that needs to be enabled in order to turn on the error indicator in the default configuration version we have been given as examples?
I don't believe so. I actually ran into this at work (BAE Systems) and it was explained to me that it just expects the functions to be supplied in a different module. I guess that's the expected normal operation. It just makes life terribly difficult when you don't know what's missing. On the other hand, just knowing that can lead you to look in different directions than if you thought you weren't downloading correctly.

If you are using version control, try going back to an older version till you find one that works. Then track the changes. That's what we had to do.

Steve C
Reply With Quote
  #12   Spotlight this post!  
Unread 16-02-2009, 17:59
gm342 gm342 is offline
Registered User
FRC #0342
 
Join Date: Feb 2009
Location: Charleston, SC
Posts: 7
gm342 is an unknown quantity at this point
Re: Cannot get Code to Download to cRIO

I still think that there is something more going on here. We troubleshooted this over the weekend quite a bit (still no full solution). We did try going through old code revisions and it did not solve the problem. We had cRIO symbol errors for all of the above mentioned symbols and then the list suddenly decreased to just the Solenoid constructors. After commenting out the solenoid constructor code, everything worked fine. Place the code back in and trouble. I checked Windriver and Eclipse settings files, and they too also were unchanged since the beginning of the season.

I am going to continue with trying to track this down.
Reply With Quote
  #13   Spotlight this post!  
Unread 16-02-2009, 18:15
Sentient's Avatar
Sentient Sentient is offline
Registered User
FRC #0639 (Code Red)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ithaca
Posts: 21
Sentient is on a distinguished road
Re: Cannot get Code to Download to cRIO

Did you try making a physical connection to the debug and reading the output in Hyperterminal? If you do have a run-time error, it will show up here.
Reply With Quote
  #14   Spotlight this post!  
Unread 16-02-2009, 21:04
computerish computerish is offline
Registered User
FRC #0619
 
Join Date: Nov 2008
Location: va
Posts: 45
computerish is an unknown quantity at this point
Re: Cannot get Code to Download to cRIO

EDIT: Everything was working fine and then suddenly we have the No Code error again. I don't understand it.

Check and double check your IP setting on your computer!

IP: 10.XX.XX.6
Subnet: 255.255.255.0

That solved it for us! Even if you "know" they are right, check it again.

Last edited by computerish : 16-02-2009 at 21:21.
Reply With Quote
  #15   Spotlight this post!  
Unread 17-02-2009, 03:44
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: Cannot get Code to Download to cRIO

This:

Quote:
Originally Posted by Sentient View Post
Did you try making a physical connection to the debug and reading the output in Hyperterminal? If you do have a run-time error, it will show up here.
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
Cannot Download Code to our Robot jcvd C/C++ 9 27-01-2009 13:09
Download Programs Off the cRIO jwdickson FRC Control System 1 10-01-2009 17:29
Can't Download Code nickmagus Programming 1 05-01-2009 17:52
Download code from robot Luminous Programming 4 25-05-2005 13:32


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