![]() |
Windriver help?
i'm new to the windriver C/C++ coding. we usually use LabVIEW but we are debating switching over one of our older show robots to a cRIO for ease and to help teach freshman about electronics and such. but i unfortunetly am not talented in C/C++ and would like to use this as an oppurtunity to learn it. so i guess my question is: Can someone point me in the right direction on how to set up Windriver and where i should look for tutorials on programming a robot using it?
TYVM any help would be greatly appreciated :D |
Re: Windriver help?
Someone can correct me if I'm wrong, but I believe all the latest documentation is on the WPI FIRST Forge site. For setting up Windriver, check out the C++ Starting Guide on this page: http://firstforge.wpi.edu/sf/docman/..._documentation
|
Re: Windriver help?
Someone can correct me if I'm wrong, but I believe all the current documentation for FIRST C++ is on the WPI FIRST Forge site. For setting up Windriver, check out the C++ Getting Started Guide on http://firstforge.wpi.edu/sf/docman/..._documentation
|
Re: Windriver help?
Someone can correct me if I'm wrong, but I believe all the current documentation for FIRST C++ is on the WPI FIRST Forge site. For setting up Windriver, check out the C++ Getting Started Guide on http://firstforge.wpi.edu/sf/docman/..._documentation
P.S. I tried to post this twice already, but it somehow is getting removed. I'm not getting any message, so I'm trying one more time. My bad if I'm not supposed to be resubmitting or if it shows up several times. |
Re: Windriver help?
tyvm. i shall look into that. and thank you for your persistance on trying to post that
|
Re: Windriver help?
Quote:
|
Re: Windriver help?
Our team has been trying to follow the "Getting Started with C" document, and have been spinning our wheels for the past week in a fruitless effort to get the first example to load and run! We got through setting up Wind River(including updates), Imaging the cRio, and setting it up for C++. We got Wind River to connect, and the sample project based on the Simple Robot template appears to build, but when we try to get it to run, nothing. Tried a debug session, but couldn't locate the entry point "FRC_UserProgram_Startup LibraryInit". :confused:
At this point what we could really use is someone to hold our hand getting a first application to run, but haven't located anyone in our area (Ypsilanti MI.) who is using C++. Has anyone been able to get into the beta version of Virtual Advisor that Bill blogged about? Thought that might be a place to look, but cant find a working login. Hate to think of going back to LabView, as that's been a nightmare the last couple years. The kids decided that C on the old IFI controller was much easier and wanted to try it on the cRio this year. Any suggestions would be appreciated. Steve |
Re: Windriver help?
So by not being able to find the FRCStartuplibraryuserprogram init entry point, I'm assuming that when you select entry point and scroll to the bottom is does not list your project? If so, you need to make sure that your project is selected under the projects tab (this is still in the same dialog that you get by doing debug->open debug dialog) and that the .out file is selected under the downloads tab. You can find this by browsing to the PPC->your project (NOT the partial image)->debug->yourproject.out (not at a computer with windriver so this may not be exact file paths).
Once you have this selected you can go back to the entry point, scroll to the bottom and you should now see a .out file. Expand this leaf and a TON of options will appear, but you'll need to find the startuplibrary one that you said before. Hope this helps |
Re: Windriver help?
If you just want to load some code on the robot and run it then don't worry about a debug session for now. I think most people probably do their debugging with print statements and the NetConsole anyway.
To load your compiled code to the robot do the following: In the Windriver Workbench: 1. Window->Preferences->First Downloader Preferences 2. Enter your team number 3. Browse for the .out file that you created when you compiled 4. Click OK 4. First->Deploy 5. Power cycle the cRIO (turn it off/turn it on) |
Re: Windriver help?
[quote=kwojcik;1008565]So by not being able to find the FRCStartuplibraryuserprogram init entry point, I'm assuming that when you select entry point and scroll to the bottom is does not list your project? If so, you need to make sure that your project is selected under the projects tab (this is still in the same dialog that you get by doing debug->open debug dialog) and that the .out file is selected under the downloads tab. You can find this by browsing to the PPC->your project (NOT the partial image)->debug->yourproject.out (not at a computer with windriver so this may not be exact file paths).[\QUOTE]
We did select our project in the Project Explorer window and used right-click to launch the Debug session. We saw SimpleRobot kernel task, but when we expanded that, we didn't find FRCStartuplibraryuserprogram init. That's what's got us confused. We haven't seen an out file of any sort, though we didn't get any errors in the Build process. Not even sure where to look for it. We also tried to Deploy the code as Jwakeman suggests, though we didn't use the steps he outlines, which may be part of that problem. We were following the Getting Started document which says to select the project in the Project Explorer, and click on Deploy under the FIRST tab. Quick flashy progress bar, but nothing after that. Power down and up reboot, and the cRio just sits there.:( We'll try Jwakeman's method tonight, and post any success or adverse/perplexing results. Thanks for the suggestions. All stuff to look at and double-check. |
Re: Windriver help?
Quote:
Remember that to download code for debugging, there cannot currently be code on the robot (either deployed or currently debugging), so either undeploy and restart or just restart respectively if necessary. (Again this was done out of memory so sorry if something isnt exact) |
Re: Windriver help?
Success!!!
We finally just gave up on the SimpleRobot project and tried the BuiltinDefaultCode project. We got it to build and deploy and the drivers station application finally showed code running on the robot. From there we were able to figure out that the PWM cables were plugged in Backwards! Thanks everyone for the suggestions. |
| All times are GMT -5. The time now is 12:36. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi