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.
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).
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.
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.
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.