Go to Post Where's the "drill enough weight holes so we're barely under 120lbs" option? ;-) - AlecMataloni [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 01-18-2009, 09:18 PM
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
User code won't download/run-possible causes?

Hoping someone can shed some light on this,

Today we were trying to download our program to the cRio, and were unable to get it either to download or to run(we're not 100% sure where the problem lies). Basically, whenever we use the "deploy" option in FIRST downloader, the progress bar just flashes on the screen, and when we reboot the cRio it does nothing and we get a "no code" warning. The odd thing is that using the "undeploy" option doesn't generate an error, so the cRio thinks it has something loaded. Additionally, we can download the example programs and they work fine. START_ROBOT_CLASS is calling our frcv1 class, and the network connection works fine.

Based on the testing we've done, we think that either
  1. The build specification is wrong, since our program is showing up as "PPC32diab", but the example shows up as "PPC32gnu"
  2. There's some other option that we have to set in order to get the program to run on startup(other than the START_ROBOT_CLASS one)
  3. FIRST downloader doesn't like our binary and is failing silently

Does anyone have any ideas on what might be the most likely, or something else that might be going wrong?
__________________
Get yer robot source code here!
Reply With Quote
  #2   Spotlight this post!  
Unread 01-18-2009, 09:23 PM
360skier 360skier is offline
RTFM!!
AKA: Eric A.
FRC #1334 (Red Devils)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Oakville, Ontario
Posts: 45
360skier is an unknown quantity at this point
Re: User code won't download/run-possible causes?

The only other thing I can think of is that your robot class needs to inherit either SimpleRobot or IterativeRobot, but other than that there shouldn't be any other steps. Perhaps WindRiver didn't install correctly?
Reply With Quote
  #3   Spotlight this post!  
Unread 01-20-2009, 10:12 PM
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: User code won't download/run-possible causes?

My class is:
Code:
class frcv1 : public IterativeRobot
Which I have 5 nines of confidence is right. Does anyone know if there's some other option that has to be set to get code to run on startup?
__________________
Get yer robot source code here!
Reply With Quote
  #4   Spotlight this post!  
Unread 01-21-2009, 11:00 AM
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: User code won't download/run-possible causes?

Hook up to the serial console and see what is happening as the system boots. You will get helpful messages as your program is attempting to load.

Also, your issue #1 is suspect. It should be PPC32gnu.

I'd suggest making a new project in windriver starting from the simple robot example, as explained in the control system docs. Nuke the example source code file and copy in your sources. Build the project. This should rule out anything wrong in the project build settings.

If that works, simply rename the project to a name of your choice.

Oh, and if you take this route, be sure to update the FIRST downloader settings (Window->Preferences) to point to the NEW binary in the NEW project. It will not update automatically and you'll just be downloading your old project build.
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
[Windriver] Getting error on run: Download Failed JHale C/C++ 4 01-15-2009 07:42 AM
printf causes programs to not run jasonpeinko Programming 6 01-17-2008 06:54 PM
Won't Download! diaperrash89 Programming 4 10-25-2007 11:02 PM
2005 default code won't compile Robby Programming 22 02-04-2005 06:21 PM
user code to default code phoenixomega001 Programming 5 01-09-2005 12:09 AM


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