Go to Post Force yourself now, today, to learn one new thing each day. When you lay down on your fluffy pillow at night, before you say your prayers, ask yourself if you have learned anything new. If the answer is "NO" then you better get up and find something. - Al Skierkiewicz [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 Rating: Thread Rating: 8 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 31-01-2010, 15:28
Dark_Vizior Dark_Vizior is offline
Registered User
FRC #3257
 
Join Date: Jan 2010
Location: California
Posts: 2
Dark_Vizior is an unknown quantity at this point
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.
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
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


All times are GMT -5. The time now is 14:19.

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