|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Getting Started in Windriver C/C++
Compiling: Project->build project
This will create a .out file and place it in the project folder under another folder (mine is PPC603gnu) under debug (e.g. \visiondemo\PPC603gnu\visiondemo\debug\visiondemo. out 1. Set up connection: a) Target-> New Connection->Select: Wind River VxWorks Target Server Connection. b) set the target location to the 10.xx.yy.2; Kernel image: select file and browse to c:\windriver\WPILib\vxWorks c) click finished If you are connected to the cRIO (either through the DS or directly), windriver should connect (in the remote systems window, you should see your new connection). 2. Window->Preferences: On left menu of preferences, click FIRST Download Preferences; enter team number and navigate to the .out file you want to download (note: you will need to change this file each time you want to upload a different file--with a different name--to the cRIO). 3. FIRST->Download 4. Reboot the cRIO and use the DS toggle to enable/disable programs I know this is in a document somewhere...but I cannot remember where. NOTE: Thanks to others on CD, I found out that if you right click on your VxWorks connection in the remote systems window, go to Target Tool->target console, select okay (I haven't played with the settngs), you will get a console window with any printing commands. NOTE: be sure to update the cRIO with the latest firmware (version 7) from: http://first.wpi.edu/FRC/frcupdates.html Hope this helps! Last edited by Stimpy1901 : 10-01-2009 at 17:25. Reason: missed info about compiling |
|
#2
|
|||||
|
|||||
|
Re: Getting Started in Windriver C/C++
A later version of that guide came with the latest Wind River V1.2 update.
Look for it on your PC at C:\WindRiver\docs\extensions\FRC The Guide will grow and improve with each new update. |
|
#3
|
|||
|
|||
|
Re: Getting Started in Windriver C/C++
Chapter 3 of the control system manual will be your friend for getting the team number and updates applied.
http://www.usfirst.org/uploadedFiles...s-Rev-0-5a.pdf The userguide is a very limited help unfortunately, our programming team sat down today and wrote a good portion of our autonomous code with the camera. You will find that this: http://www.virtualroadside.com/WPILib/annotated.html Will be your friend as well as the individual source files. We worked almost exclusively off of them. While I am encouraging teams to use C++ as it has more features for debugging (the NI guys will argue with me about that but I have yet to see a real example) you will at this point need to have a solid understanding of classes, inheritance, and types, especially what an enum is. There are also a lot of FIRST examples under File->New->Example->VxWorks Downloadable Kernel Module Sample Project Not none of this will work right until you have applied the WPILib, NI, and DS updates. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting Familiar with Programming in WindRiver | kyungjin | C/C++ | 35 | 17-01-2009 13:04 |
| Programming - Getting Started | Mark McLeod | Programming | 80 | 16-04-2008 23:37 |
| FPGA getting started | Rickertsen2 | Electrical | 4 | 10-09-2005 12:52 |
| Getting Started | Cheese Head | Programming | 4 | 09-10-2002 22:24 |