Go to Post They can build a robot in 6 hours, so they don't need to start meeting for months... - Karthik [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-24-2010, 08:48 PM
ProgrammerMike7 ProgrammerMike7 is offline
Registered User
AKA: Mike
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Canada
Posts: 13
ProgrammerMike7 will become famous soon enoughProgrammerMike7 will become famous soon enough
Talking [WindRiver]Creating a fresh buildable project

Our team has had problems downloading our own code to the robot. All the sample code works, however when we went to create our own project, it would either not build, or not download (producing the infamous no code error). However after working on this, Andrew (basicxman) and I have come up with a solution that will create our own working project. The following are steps we took to do this and I hope it will help.

1. Make sure all updates are installed and cRIO is imaged using v19.
The updates that are needed are:
a. Labview Update
b.Driver Station Update
c.Missing File Needed
d.Workbench Update
The correct way to install the Driver Station can be found at this post: http://www.chiefdelphi.com/forums/sh...9&postcount=44

2. Open WindRiver. Go to File->New->Vxworks Downloadable Kernel Module

3. Name your project, and choose it's location. Then click next.

4. Click next if you do not want to reference any subprojects.

5. Do not change anything in the "Buid Defaults" or "Build Support" window, instead just click next.

6. In the Build Specs window, unclick the following check boxes: "PPC32diab", "PPC32gnu", and "PPC603diab". "PPC603gnu" should be the only box left checked. Click next.

7. Click next one more time and then click finish.

8. Enter the project explorer on the left-hand side of windriver. Right click on the project you just created and click "Properties".

9. Click "Build Properties" on the sidebar and select the "Build Support and Specs" tab. Under "Available and enabled build specs", make sure the only checked checkbox is "PPC603gnu".

10. Select the "Build Paths" tab. Click the "Add..." button. In the pop-up window, type (without quotations) "-I$(WIND_BASE)/target/h/WPILib". Click OK.

11. Select the "Libraries" tab. Click the "Add..." button. In the pop-up window, select the "Add full qualified library file" radio button. In the textbox, type (without quotations) "$(WIND_BASE)/target/lib/WPILib.a". Click OK.

12. Back in the properties window, click OK.

13. Now it's time to add your code. Right click the name of your project in the project explorer and click New -> File. Name your file whatever you choose but make sure it has a .cpp extension.

14. Write all your code.

15. If you include any files, check to see if it's in the WPILib Library. To do this, under your project, select Includes -> (file path ending with WPILib) and check if the file you included is there. If it is, disregard the rest of this step. If it's not, find out where this file is located. Now right-click on your project name in the project explorer. Click "Import...". Select General -> File Path -> Next, and then browse for the file. Check the files you want to include in your program. If there's a corresponding .cpp file with the .h file, import it too. Now click finish. This is an important step. Even if you specify the exact path in your program, if it's not in the WPILib library, it must be imported.

16. Make sure you are connected to the cRIO in the "Remote Systems" tab to the left side of windriver. If not, right click your robot name and click connect.

17. Click FIRST -> Undeploy from the menu bar at the very top of the window.

18. Then go to Window->Preferences and select "FIRST Downloader Preferences". Enter your team number in the format XXXX. Then click browse and navigate to your project folder. Enter the PPC603gnu folder followed by ProjectName\Debug and select the .out file. Click OK.

19. Click FIRST->Download to download the code to the cRIO. Make sure the download window does not just flash across the screen. If it does, make sure you have all the build setting and includes set properly as previously described.

20. Reboot the cRIO and run your code!

Note the first time you build your code, you may have to exit WindRiver, then reopen it and rebuild your project.

I hope this helps those of you who are having troubles creating your own projects or downloading code. Please reply if you need further assistance.

- Mike and Team 2200
__________________
Wait (-1)

Last edited by ProgrammerMike7 : 01-24-2010 at 08:59 PM.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windriver - Cannot Create New Example Project Aaron S C/C++ 6 01-19-2010 09:25 PM
help:Downloading the project in windriver mahmosh C/C++ 5 01-10-2009 10:08 AM
Creating new MPLab Project Mike Programming 4 01-15-2006 02:26 PM
Buildable Bridge? archiver 2001 0 06-24-2002 01:18 AM
Fresh from the forum Ken Leung CD Forum Support 3 01-15-2002 10:22 PM


All times are GMT -5. The time now is 10:00 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi