|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#2
|
|||
|
|||
|
Re: can't Download code to cRIO
The FIRST downloader in Windriver is specifically for downloading the code permanently to the cRIO. The run dialog however, will allow you to send code to the cRIO temporarily which will allow you to debug and test while developing.
Assuming you have set the IPs of the cRIO and the Gaming Adapter correctly, you need to setup a Kernel Task in the Run Dialog. You can do this by clicking on the arrow next to the green button with a triangle on it, and then click 'open run dialog'. To the left, you should see a tree diagram with the 'kernel task' option in it. Right click on this and make a new kernel task. In the main tab in the box next to 'entry point' you need to put 'FRC_UserProgram_StartupLibraryInit'. Next, switch to the projects to build tab and then add your current C++ project to this box. Switch to the downloads tab and make sure the same project is selected. Once you have done this, you can click 'apply' which will save the settings and close the dialog. Now, in the bottom left corner of the Windriver program, you will see the 'remote systems' tab, right click in there and click on 'new' and the 'connection'. In the dialog that pops up, go into the VxWorks 6.x tree and use the Wind River VxWorks 6.x Target Server Configuration that is available there. Click next. Make sure the target name/ip address is set to your cRIO's address. The input box next to 'File' needs to be set to the VxWorks file located in C:\windriver\WPILib\ Once you have done that, click finish. You can then right click on that connection and assuming your robot is all connected and you can ping it, you can right click the connect button. After it connects, you will see the tasks running on your cRIO. To upload code to the robot, all you need to do is go up to the green button that you went to before and select the run configuration you setup before and it should send the code to the robot. You can reset the code by resetting (the power) or rebooting the robot remotely. Hope this helped. Regards, team 3257. ![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need to manually reboot cRIO to download code | FRC4ME | Java | 6 | 24-01-2010 15:59 |
| Another Can't Download Code Thread | rjn | C/C++ | 9 | 24-01-2010 10:17 |
| Cannot get Code to Download to cRIO | greekgod8591 | C/C++ | 25 | 09-03-2009 22:10 |
| Can't Download Code | nickmagus | Programming | 1 | 05-01-2009 17:52 |
| Can't download from Autodesk FIRSTbase | Bomberofdoom | Inventor | 11 | 01-01-2008 20:06 |