Go to Post it's much easier to build safety in to a system than to add it on a Thursday at a regional. - dtengineering [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-16-2010, 04:10 PM
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
[Help Needed] Setting up WindRiver - Step by Step

Hi there,

Our team has probably spent about 12 hours total now trying to get code onto the cRio and running. Before you instantly close this tab and/or flame us for not updating, imaging, etc please read our procedures so far.

Development PC: (it's a completely new installation of XP so there's no old things on it)
~Set IP to 10.22.0.6
~Downloaded the following updates (maybe we're missing some - I don't think so though)
~http://first.wpi.edu/Images/CMS/Firs...te20100107.exe
~http://joule.ni.com/nidu/cds/view/p/lang/en/id/1534
~http://decibel.ni.com/content/docs/DOC-8891
~http://joule.ni.com/nidu/cds/view/p/lang/en/id/1535

The classmate and development laptops both have all these updates and show the v19 cRio Image. The cRio has been loaded (twice) with the image using the LabView cRio Imager (might not be called that exactly, I don't have it right now sorry).

So opening WindRiver we right click on the sidebar and create a remote target. We set the IP to 10.22.0.2 and the kernel file correctly (path/vxWorks). We press Apply/Ok and it connects, we have a list of the files currently on the cRio.

From here we have tried:
Window->Preferences->FIRST Downloaded and setting our team number + executable from the project. Result: Sometimes downloads, never runs any new code

Right Click on the Remote Target, run as kernel/debug as kernel and select the FIRST_Init module or which ever it is (again sorry, I'm not at the development laptop) and select or executable.

None of these have worked really well and we're all getting frustrated. Could somebody please outline step-by-step how to deploy code onto the cRio to make it run upon the cRio's boot. Thank you all, we appreciated your efforts to help us

EDIT: We've read quite a few manuals, all seem to be inconsistent and half the code in their doesn't work.
EDIT 2: Yes, our custom code builds and generates an executable.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-16-2010, 11:04 PM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: [Help Needed] Setting up WindRiver - Step by Step

Did you originally install WindRiver in the default directory, or did you pick one of your own choosing? The ThunderChickens' findings in this thread might be useful:

http://www.chiefdelphi.com/forums/sh...threadid=80240
Reply With Quote
  #3   Spotlight this post!  
Unread 01-16-2010, 11:11 PM
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: [Help Needed] Setting up WindRiver - Step by Step

Default - C:\windriver

On monday we're going to debug and log error messages.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-17-2010, 11:37 AM
davidalln's Avatar
davidalln davidalln is offline
World's Worst Coder
AKA: David Allen
FRC #2415 (The Westminster Wiredcats)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Atlanta, GA
Posts: 108
davidalln is on a distinguished road
Send a message via AIM to davidalln
Re: [Help Needed] Setting up WindRiver - Step by Step

It sounds like you're trying to run the code in debug mode rather than burn it to the cRio. If you run it through debug, then the code will be on the RAM but will not stay on once you turn off the cRio. Try running FIRST->Download when connected to the cRio in Windriver (although burning code through FIRST->Download hasn't been working for out team either... but that's another issue entirely)

Also, did you install the update for the driver station according to the following post: http://www.chiefdelphi.com/forums/sh...9&postcount=44

Finally, how do you have your connections set up? Are you directly connected to the cRio by ethernet, through the gaming adapter, or through the wireless bridge?
__________________
SANTOSH ANDREW DECKER RICK WYNNIE SEAN DEREK MATT
(alamo (semis), p'tree (CHAMPS!), nc (CHAMPS!), newton (quarters))


Best four years of my life. Thanks to everyone who made it happen.
Reply With Quote
  #5   Spotlight this post!  
Unread 01-17-2010, 12:21 PM
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: [Help Needed] Setting up WindRiver - Step by Step

Quote:
Originally Posted by davidalln View Post
It sounds like you're trying to run the code in debug mode rather than burn it to the cRio. If you run it through debug, then the code will be on the RAM but will not stay on once you turn off the cRio. Try running FIRST->Download when connected to the cRio in Windriver (although burning code through FIRST->Download hasn't been working for out team either... but that's another issue entirely)
>> We've tried both methods, FIRST->Download (and of course setting the right option in Window->Preferences->FIRST Downloader...

Quote:
Originally Posted by davidalln View Post
Also, did you install the update for the driver station according to the following post: http://www.chiefdelphi.com/forums/sh...9&postcount=44
>> We did not install it in that order as far as I know, on Monday we'll try this approach.

Quote:
Originally Posted by davidalln View Post
Finally, how do you have your connections set up? Are you directly connected to the cRio by ethernet, through the gaming adapter, or through the wireless bridge?
>> We've been imaging it via ethernet and programming via the wireless setup. We are pretty certain that the connections are set up correctly, the IP's are correct and we're getting a connected status under the Remote Target
Reply With Quote
  #6   Spotlight this post!  
Unread 01-17-2010, 02:46 PM
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 453
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
Re: [Help Needed] Setting up WindRiver - Step by Step

I understand your frustration with Wind River. This is our second year using it and we are still learning some of it quirks. Especially when it comes to debugging. This year it seems like we had to relearn the necessary steps to perform debug operations. Here are some things that we have learned through hours of pain. I hope these tips are helpful.

1. When in doubt reboot the cRIO and or Windriver.
2. When unsure if you have com PING everything and perform an IPCONFIG.
3. Right click the project and select Rebuild or clean build.
4. Ensure that you have the correct .out file and team number WINDOW->PREFERENCES->FIRST DOWN LOADER PREFERENCES
5. After building a project you need to check the Build Console and ensure that the .out file built for your current project.

There is a list of other steps that can be performed. I know that you have performed some of these already. It will be easier to assist you more when you post the error messages. One last thing that you should always do after loading code for release onto the cRIO is perform a power cycle or reboot. Do not perform this step if you are debugging as it will clear the code out of ram. Unfortunately it is difficult to provide you with an exact answer to your issues. There are so many ways that failure occurs and most of them are not documented but found via trial and error. This new system is very powerful and fast and provides the option to use a variety of software tools. Is it the correct solution for FIRST? In my opinion absolutely not. The pre 2009 control system had its limitations but at least a team could get code loaded and executing in less than 1 day. We only have 6 weeks, every minute of every day is of value. We are a veteran team who is software strong. We have mentors that develope software for both embedded and OS based systems. Even they spend the first few days just trying to get the tools to work. This is unacceptable and needs to change. Normally I do not post my opinion about these kinds of things I leave that to my brother, but in these last few days we have been experiencing more software tool related delays and I had been planning to post my concerns on CD to see if anyone else felt the same way as me.

I hope you get these problems solved and if you don't feel free to PM me and maybe we can assist you with your problem over the phone.
__________________
Mike Copioli
CTRE Hardware Engineer
http://www.ctr-electronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions
Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
Reply With Quote
  #7   Spotlight this post!  
Unread 01-17-2010, 08:08 PM
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: [Help Needed] Setting up WindRiver - Step by Step

Quote:
Originally Posted by Mike Copioli View Post
1. When in doubt reboot the cRIO and or Windriver.
2. When unsure if you have com PING everything and perform an IPCONFIG.
3. Right click the project and select Rebuild or clean build.
4. Ensure that you have the correct .out file and team number WINDOW->PREFERENCES->FIRST DOWN LOADER PREFERENCES
5. After building a project you need to check the Build Console and ensure that the .out file built for your current project.
Unfortunately we have tried all of this to no success. Thanks for your advice, hopefully tomorrows debug logs will help.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-18-2010, 04:49 PM
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: [Help Needed] Setting up WindRiver - Step by Step

Turns out we don't have an RS232-USB adapter here to run diagnostic logs. Will get back to you guys anytime - any other suggestions?

Can somebody outline the proper method of creating a new project so we're sure? We seem to be able to get the SimpleTemplate on there
Reply With Quote
  #9   Spotlight this post!  
Unread 01-18-2010, 05:23 PM
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: [Help Needed] Setting up WindRiver - Step by Step

Quote:
Originally Posted by basicxman View Post
Can somebody outline the proper method of creating a new project so we're sure? We seem to be able to get the SimpleTemplate on there
Its in http://first.wpi.edu/Images/CMS/Firs...artedWithC.pdf

but breifly File>New>Example Select middle one, FRC Simple Template. then Modify the code in the main cpp file (MyRobot.cpp) to do what you want it to. look at the above PDF for details
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #10   Spotlight this post!  
Unread 01-18-2010, 09:03 PM
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: [Help Needed] Setting up WindRiver - Step by Step

Quote:
Originally Posted by byteit101 View Post
Its in http://first.wpi.edu/Images/CMS/Firs...artedWithC.pdf

but breifly File>New>Example Select middle one, FRC Simple Template. then Modify the code in the main cpp file (MyRobot.cpp) to do what you want it to. look at the above PDF for details
We've known about this way, but we wanted something a little more use of orthogonality.

Anyways, we've now created a guide on proper project creation that builds.

We fixed the previous errors, an update was not properly installed on the classmate causing problems. The real error? Team communication. Anyways, thanks for everyone's help!
Reply With Quote
Reply


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
STEP Downloads nosvamos Inventor 6 02-02-2009 03:09 AM
Vex step-by-step builders' guide ManicMechanic VEX 0 07-14-2008 12:12 AM
Mini RC step-down atmaturen Electrical 2 05-11-2005 11:48 PM
Yes Large Step Tton General Forum 1 02-12-2003 12:54 PM


All times are GMT -5. The time now is 08:20 PM.

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