Go to Post I may be a little slow responding, I'm shoveling snow. - Mark McLeod [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 15-12-2012, 13:58
jglassy jglassy is offline
Registered User
FRC #3216 (Missoula Robotics Group)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Missoula, MT
Posts: 2
jglassy is an unknown quantity at this point
Question Win driver c++ on cRIO-ii only partially deploys app code

Hello Delphi folks,

Our FRC team 3216 has decided to use c++ this year, using wind-river v3.3.1 from KOP 2012, and VxWorks 6.3, on Eclipse 3.6.2, on win 7. We have achieved network comm with cRIO ok, can ping it via cmd and driver son ok, and deployed the core VxWorks OS on platform. We have an FRC app that seemed to run once, but now cannot get to correctly deploy and run. The build itself goes almost too fast, resulting in an executable, but won't run due to lack of a entry point (e.g. Missing a EXE header on the assembly?) or unresolved link object. Can anyone using 2012 wind river c++ give us concise stepwise guidance on how to verify that a build with app code succeeded? It appears to succeed , but app does not run. Note: our mentors have experience with c and c++ and Linux Gcc compile,link, build processes but no specific experience with FRC wind river c++. Thanks in advance....

Team 3216
Reply With Quote
  #2   Spotlight this post!  
Unread 19-12-2012, 23:35
Fifthparallel Fifthparallel is offline
Registered User
AKA: Sam Chen
FRC #1410
 
Join Date: Dec 2012
Rookie Year: 2011
Location: Denver, CO
Posts: 65
Fifthparallel is an unknown quantity at this point
Re: Win driver c++ on cRIO-ii only partially deploys app code

So a couple things, in case you didn't catch it. (hah, try {} catch{} -moving right along).

Read through this getting started with C/C++ pdf. Seriously though, read through the entire thing and then go through it step by step, kinda like putting together a model airplane.
The second thing I want to ask is persuant to that pdf above, it sounds like you were running the Debug configuration. I skipped over this earlier today when I tried the same thing you did (although it's entirely necessary during the build season proper).
The entry point error you mention can be remedied by first making sure you are connected to the cRio remote target with vxworks, right clicking the project in the project tree, and selecting Vxworks Debug Kernel (something like that). This should open another window that has an option tree on the left with a Kernel Task option. Click/expand this and choose the corresponding option for your remote target -- The cRio communications "server" you set up earlier. From there, you can type FRC_UserProgram_StartupLibraryInit into the entry point text field, and follow the rest of the instructions in the "Getting Started" guide linked above.
You should note that the debugging process only runs the program in the cRio's RAM through the Wind River debugger -- which allows you to set breakpoints and whatnot, in addition to immediately test your code and provide diagnostics on it. The section immediately after in the guide tells you how to permanently store a robot program and run it at startup.
__________________
sudo chmod u+x helloworld.sh
gotta start somewhere.
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


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

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