We’re having a problem loading code onto the bot with the new WPILib update. The first time the cRIO is started, and you run your user program directly, it still says “No Code”. Only when you delete the program from memory and run it again does it start working. This did not happen until we updated WPILib and the cRIO/FPGA firmware.
For clarification: are you asking if you have to use “FIRST->Undeploy” before using “FIRST->Download”? Are you asking if you have to use “FIRST->Undeploy” before running the program off of the cRIO RAM?
If the former, this is normal procedure, and a good idea even if you could get away with not undeploying; your cRIO will eventually need formatting again if you download without undeploying. Always undeploy before downloading. Also, I believe you have to undeploy to run the program with “Run” or “Debug.”
Have you tried viewing the console through the serial port? Sometimes if there is an error in the code it will not run it and you will get the no code message. View the entire boot text that it displays, the error should come up the the end if this is the case.
our team has had this problem, what we did was (if tethered) make sure you are downloading the .out file, if you are go to FIRST then click download, if no progress bar comes up there must be setting that still needs to be changed. If the progress bar does come up then restart the bot, first it says No Comms then No Code, just be patient, it takes ours about 4 min or less (depending) until it says the voltage of the battery. Hope this helps
No, we’re using just the Run dialog, where the program is loaded directly into memory. Our code loads and shows up in the Remote Systems panel, but the driver station still says “No Code”. After deleting the code from the panel (right-click ‘project.out’ and click Delete) and re-running it (again directly from memory), it works fine until you reboot the cRIO.
It’s not a huge problem - it only takes about 10 seconds do load-unload-load and get it working, but it is a little annoying.