Go to Post Has anybody seen our programmer? He was last sighted walking southbound in the rain, his laptop tucked under his arm, grumbling to himself. - Taylor [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-02-2011, 13:07
dratewka2 dratewka2 is offline
Registered User
FRC #2625
 
Join Date: Jan 2011
Location: Missisauga
Posts: 11
dratewka2 is an unknown quantity at this point
Smile Problems with Deploying code

hello, Im running using Windriver but i cant seem to get the robot code to stay on the cRIO after rebooting. The code seems to stay on the RAM and after reboot the RAM is flushed making it so we have to reload every time.
After Building,Debugging,Running and then deploying it still does not manage to perminatly load.

yes i have used the First > Deploy function many times.

Help if possible. I am missing something simple, but im not sure what it is exactly.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2011, 14:30
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Problems with Deploying code

You need to connect to the debug console either by COM port or using the netconsole so that you can see the messages from the cRIO. It will tell you why the code doesn't deploy. But in our case for last year, our code was loaded too far away from the WPI library so it need to use longcall in order to resolve the links. To fix it, you need to add "-mlongcall" to your linker option. In Workbench IDE, right click on the project in project explorer on the left. Select "Properties". In the project properties dialog, click build properties on the left and click the "Build Macros" tab on the right. Make sure your Active Build Spec is "PPC603gnu". Select the "CC_ARCH_SPEC" name and click the Edit... button. If the "-mlongcall" option is not there, append it to the end. Save it and recompile.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2011, 14:46
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Problems with Deploying code

It sounds like it might not be the mlongcall issue...it sounded to me like their application was running ok but was removed from the cRIO each time it rebooted. Maybe one of those little white switches on the cRIO is in the wrong position?
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2011, 14:46
dratewka2 dratewka2 is offline
Registered User
FRC #2625
 
Join Date: Jan 2011
Location: Missisauga
Posts: 11
dratewka2 is an unknown quantity at this point
Re: Problems with Deploying code

I went looking for the attached -mlongcall, and it was there, so it couldnt be the problem. Anyways ill keep trooping looking for another answer.

soo frustrating, even the getting started with c++ pdf couldnt help me when uploading code perminatly. I followed it to percision and still nothing...
Reply With Quote
  #5   Spotlight this post!  
Unread 15-02-2011, 14:51
dratewka2 dratewka2 is offline
Registered User
FRC #2625
 
Join Date: Jan 2011
Location: Missisauga
Posts: 11
dratewka2 is an unknown quantity at this point
Re: Problems with Deploying code

all of the dip switches on the cRIO are set to off, should they all be positioned like that?

Last edited by dratewka2 : 15-02-2011 at 15:46.
Reply With Quote
  #6   Spotlight this post!  
Unread 15-02-2011, 14:58
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Problems with Deploying code

If it is not the mlongcall issue, you really need to hook up the debug console. It will at least tell you what failed.
__________________
Reply With Quote
  #7   Spotlight this post!  
Unread 15-02-2011, 15:16
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,113
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: Problems with Deploying code

Quote:
Originally Posted by dratewka2 View Post
all of the dip switches on the cRIO are set to on(True), should they all be positioned like that?
No. They should all be OFF. I suspect they already are, because you wouldn't be able to do anything with the IP RESET switch ON.

You can turn the CONSOLE OUT switch ON if you want to monitor the VXworks console on the DB9 serial connector. The USER switch can be whatever you want it to be. The NO APP switch won't make any difference if you aren't using LabVIEW.
Reply With Quote
  #8   Spotlight this post!  
Unread 15-02-2011, 15:46
dratewka2 dratewka2 is offline
Registered User
FRC #2625
 
Join Date: Jan 2011
Location: Missisauga
Posts: 11
dratewka2 is an unknown quantity at this point
Re: Problems with Deploying code

oops, i meant off sorry all the dip switches are set to off but still nothing.
Reply With Quote
  #9   Spotlight this post!  
Unread 15-02-2011, 22:09
Trump Trump is offline
Registered User
FRC #2053
 
Join Date: Feb 2010
Location: New York
Posts: 18
Trump is an unknown quantity at this point
Re: Problems with Deploying code

Have you tried reimaging the CRIO. If you're using CAN try formatting it without any of the Can Drivers, and then go back in and put the CAN drivers on without reformatting. Also use netConsole to check that you aren't getting any run-time errors.
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:15.

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