Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   it seems there is no program in crio after downloading (http://www.chiefdelphi.com/forums/showthread.php?t=71831)

mahmosh 01-10-2009 06:23 PM

it seems there is no program in crio after downloading
 
hello ...
we tryed to download the project (simple template that comes with windriver) it succeed but it seems there is no program in the crio and the control system flashing... the driverstation show battery: "no code" ... we restarted the crio and the driver station .. so the problem dosen't change.

please need ur help!!

virtuald 01-10-2009 09:08 PM

Re: it seems there is no program in crio after downloading
 
Make sure you have (a) undeployed the default code, and (b) You have clicked "Automatically attach spawned kernel tasks" in the debug options. You can check the kernel task list to see if there is already an FRC_RobotTask in there (which happens to be the task that gets started by default).

mahmosh 01-11-2009 07:50 AM

Re: it seems there is no program in crio after downloading
 
i will try this when debuging .... but when i download the project by FIRST downloader why it doesn't success

byteit101 01-11-2009 08:54 AM

Re: it seems there is no program in crio after downloading
 
Did you set the downloader preferences?
Window>Prefrences:>FIRST Download Options

mahmosh 01-11-2009 09:02 AM

Re: it seems there is no program in crio after downloading
 
no .. we didn't ... i don't have the program here .. could u send me a picture for that windows and what options should i make

BradAMiller 01-11-2009 09:30 AM

Re: it seems there is no program in crio after downloading
 
Look at the menu: Window / Prefences, then the FIRST Downloader Preferences tab. Fill in your team number (that sets the IP address) and the .OUT file name. The .OUT file will be in the c:\windriver\workspace\<project-name>\PPC603gnu_debug directory. After that you should be able to download the project.

Remember, you only have to download it when you want it to start at power up of the cRIO. If you are debugging use the "Debug Kernel Task" option.

byteit101 01-11-2009 09:32 AM

Re: it seems there is no program in crio after downloading
 
1 Attachment(s)
I dont have it here either, but attached is a quick rendering of what it should look like (yes, i just did it in Visual Studio Designer)

mahmosh 01-11-2009 10:33 AM

Re: it seems there is no program in crio after downloading
 
thank you alot i will try it ... do u think it may fix the problem ??

Adamsmasher23 01-11-2009 05:58 PM

Re: it seems there is no program in crio after downloading
 
We had this same issue, and resolved it by specifically pointing to the WPILib.a file in the project Build Options.

mahmosh 01-11-2009 06:28 PM

Re: it seems there is no program in crio after downloading
 
can u give me a picture for the project build options that u mean .... cuase i don't remember how to get it ...

heydowns 01-12-2009 11:46 AM

Re: it seems there is no program in crio after downloading
 
You will also get "No Code" when you load a program that has unresolved symbols. You can see if this is your problem by hooking up the serial console and watching the cRIO load your program as it boots up. It will print messages telling you which symbols remain unresolved.

Unresolved symbols occur when your program calls out to some function or variable that is not defined in your code (for example, saying a class has some member function in its definition, but then never actually implementing the function).

The serial console has proved extremely helpful for us in resolving most code download issues.


Quote:

Originally Posted by mahmosh (Post 797884)
hello ...
we tryed to download the project (simple template that comes with windriver) it succeed but it seems there is no program in the crio and the control system flashing... the driverstation show battery: "no code" ... we restarted the crio and the driver station .. so the problem dosen't change.

please need ur help!!


Adamsmasher23 01-12-2009 05:27 PM

Re: it seems there is no program in crio after downloading
 
I don't have the development computer available to me right now, but from memory:
Project menu>Preferences
then click on (I think) Build Preferences
Then click on the Libraries tab
and add WPILib.a as a fully qualified library file

Or at least that was what fixed our problem.
And yeah this is related to unresolved symbols.

mahmosh 01-12-2009 06:53 PM

Re: it seems there is no program in crio after downloading
 
it does work after updating windriver thx all


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi