|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
How do I load the default code?
Hi, I'm trying to set up Wind River with the default code to get at least something on the flash memory of the cRIO. I've set up a project with the SimpleTemplate, but from what I can see, the project only includes .h files, and MyRobot.cpp. Shouldn't there be .cpp files for each .h file? I can see no declarations for any of the functions in the .h files anywhere in the project, and I searched for ".cpp" in the WindRiver directory and could not find anything. However, I downloaded the source code (WPILibRC0.1718SourceCode.zip) from http://first.wpi.edu/FRC/frcupdates.html , but I can't figure out what directory it has to go in in order for this to work.
Any help would be greatly appreciated. Thank you. EDIT: I forgot to mention, the default code from the cRIO imaging tool works fine, but it does not stay in memory after a reboot. Last edited by HarryScheiner : 05-02-2009 at 18:41. |
|
#2
|
||||
|
||||
|
Re: How do I load the default code?
There are no .cpp files because they are pre-compiled. Just build the default template, and download it to your robot. The file to load is found under preferences->first downloader
|
|
#3
|
|||
|
|||
|
Re: How do I load the default code?
I tried that, but when I load the code the robot does not move.
|
|
#4
|
||||
|
||||
|
Re: How do I load the default code?
did you go to File>New>Example:vxWorks Download... :Next:FRC Simple Robot Template:Finish?
also make sure you enable the robot Edit: enable by the switch you attach on the side of the DS |
|
#5
|
||||
|
||||
|
Re: How do I load the default code?
HarryScheiner,
1)Did you make sure to Undeploy (Under the same FIRST menu bar entry as Download) before downloading the SimpleTemplate? 2)After downloading, did you reset the robot? 3)Have you connected the cRIO's serial port to your PC via a null-modem connection? Is VxWorks throwing up any error messages to the console as it boots? |
|
#6
|
|||
|
|||
|
Re: How do I load the default code?
Quote:
2) Yes 3) Could you explain this? I'm not sure I understand. |
|
#7
|
||||
|
||||
|
Re: How do I load the default code?
What I mean is, have you done the following:
-Flipped the DIP switch on the cRIO that says "Console" -Connected the 9-pin serial port on the cRIO to your computer (either a serial or USB port, depending on what you have available) with a null-modem cable -Opened a terminal in Workbench (from the menubar Window -> Show view -> Terminal) or connected via some other program like HyperTerminal or PuTTY. Regardless of what you use, the settings should be: connection type - serial 9600 baud, 8 data bits, 1 stop bit, no parity, no flow control -Watched the cRIO's boot messages on the terminal to see if it's outputting any errors |
|
#8
|
|||
|
|||
|
Re: How do I load the default code?
Thank you. I managed to get it working, it turned out to be the simple mistake of not having the latest cRIO Imaging Tool. Guess I glanced over that one when I was updating
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The Default Code | robocata | Programming | 1 | 29-01-2006 17:59 |
| Default code and the Compressor | Matthew_H | Programming | 16 | 07-02-2005 07:19 |
| Best Way To Insert Autonomous Code Into Default then load help.? :-)? | gemccnp | Programming | 2 | 05-02-2005 18:58 |
| Can't Compile the Default Code | pressurex1 | Programming | 4 | 25-01-2004 20:26 |
| How long does it take you to load the default code? | vegasmcse | Robotics Education and Curriculum | 10 | 03-11-2003 21:41 |