Go to Post You know you are addicted to FIRST when you have trouble describing it because you realize it truly is way more than just a robotics competetion. - vivek16 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 03-05-2009, 22:11
avolkov avolkov is offline
Registered User
FRC #1155
 
Join Date: May 2009
Location: NY
Posts: 10
avolkov is an unknown quantity at this point
Windriver connection to cRio

Hello all, again

I just have a quick question on Windriver basics... I was looking through the FIRST manual which comes with the windriver installation, and I noticed that a good amount of the pages are simply blank with only headers of what was supposed to be described there...

since most of these topics where not necessary for what I needed, I didnt care to much about finding these pages... BUT, what was also missing was the page titled something like "Setting up FIRST download preferences"... The page was supposed to describe how to properly deploy a windriver program permanently onto a cRio...

I already set up a connection with the cRio in an earlier chapter of the manual, so my question is - is deploying a program using windriver about the same as with labview (that is, you hook up the laptop to the drivers station, and you click "run")? or is it different in so many ways that I have no chance to figure it out on my own?

Either way, I would appreciate a near-step-by-step guide how to deploy my first windriver program (for instance, I already have the Sample Robot program set up and modified for my preference)...

Thanks in advance
  #2   Spotlight this post!  
Unread 03-05-2009, 23:09
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Windriver connection to cRio

Is the version of the C/C++ Programming Guide for the FIRST Robotics Competition, Rev 0.76, dated January 25, 2009?
(Located after installation at: C:\WindRiver\docs\extensions\FRC\C Programming Guide for FRC.pdf)

Are you talking about page 14 "Setting up the environment" or another section?

There are blank sections at the end, such as, Using the Serial Port, Using I2C, and C++ Tips.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-05-2009 at 23:15.
  #3   Spotlight this post!  
Unread 04-05-2009, 00:55
avolkov avolkov is offline
Registered User
FRC #1155
 
Join Date: May 2009
Location: NY
Posts: 10
avolkov is an unknown quantity at this point
Re: Windriver connection to cRio

I don't have the manual on me but I think the section is further down, past setting up the sample program...
And yes, that is the manual I am talking about
  #4   Spotlight this post!  
Unread 04-05-2009, 10:13
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Windriver connection to cRio

You might have an older version of the document.
A new version came out with each Wind River update we received, so make sure you are looking at the latest from January 25, 2009.

Did you install the latest Wind River update? Do you need it?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 04-05-2009, 18:21
avolkov avolkov is offline
Registered User
FRC #1155
 
Join Date: May 2009
Location: NY
Posts: 10
avolkov is an unknown quantity at this point
Re: Windriver connection to cRio

I updated windriver to the newest version as soon as I installed it, so like, if anyone knows how to do it, please tell me
  #6   Spotlight this post!  
Unread 04-05-2009, 21:14
avolkov avolkov is offline
Registered User
FRC #1155
 
Join Date: May 2009
Location: NY
Posts: 10
avolkov is an unknown quantity at this point
Re: Windriver connection to cRio

bad wording above, I meant, if anyone knows what are the exact steps to connect + upload code from windriver to a cRio
  #7   Spotlight this post!  
Unread 05-05-2009, 08:40
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Windriver connection to cRio

I assume from your post that you did the first two steps.

1) Create a new connection following the Guide and connect to your cRIO using the Remote Systems window.
2) Setup the debugger settings


For the FIRST Downloader Preferences you have to tell Wind River exactly which .out file to download in the menu:
Window --> Preferences -> FIRST Downloader Preferences

Go to Windows on the top menu bar and select Preferences.
Under Preferences you'll see "FIRST Downloader Preferences" and in there you need to set your team number, and find the ".out" file that your example generates.

You can locate your compiler output by drilling down through your project files in the Wind River Project Explorer in the upper left window. The File Navigator will probably have several .out files listed with the full path, just make sure you pick the one with the same name as your project. The .out file will only exist after you've compiled the first time.

The .out will be under whatever project directory you've made. Mine happens to be C:\WindRiver\2009. For instance, for a Simple Template project the .out is buried under: C:\WindRiver\2009\SimpleTemplate\PPC603gnu\SimpleT emplate\debug\SimpleTemplate.out

No matter what project you are working on, when you tell it to download, that's the file that's going to be downloaded, so be sure to change it whenever you switch projects. Many people find themselves changing their code, but downloading an old program. You can pull your hair out over figuring out why none of your changes do anything.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-05-2009 at 08:47.
Closed Thread


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
Connection with cRIO nadavsen2 Programming 4 29-01-2009 03:13
cRIO configuration issue- serial connection to laptop Torbots 1197 FRC Control System 5 28-01-2009 22:28
Potentiometer on cRIO, Programming in Windriver sircedric4 C/C++ 3 20-01-2009 06:42
Remote Connection from WindRiver Team1710 C/C++ 3 16-01-2009 09:41
CRIO not working with Windriver dpeterson3 C/C++ 7 07-01-2009 20:49


All times are GMT -5. The time now is 01:59.

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