Go to Post ...your stress reliever is a ziptie with the end cut off so you can pull it straight through. It really works! - Storcky [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 16-01-2013, 13:30
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
Unhappy Problem downloading to CRio

Using WindRiver under 2012 spec, we were able to compile and download repeatedly with the new compile replacing the old in the cRio and executing as expected. Now, after updating all components to 2013 spec, we see the following problem:

After reboot of cRio, we are able to download c++ code and it runs as expected. There are some errors that I don't understand, but the code does run and does what we expect. If we then recompile and download without reboot of cRio, the download appears to work and our code starts (we can see console trace of class constructor being called) but then our program fails with a c++ exception. We never reach the point of enabling auto or teleop mode. We have to reboot cRio to be able to download and run successfully.

I will have attached the console output from a successful download followed by one that fails.
Attached Files
File Type: txt Robot_Console_Trace.txt (6.1 KB, 9 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2013, 13:33
ehochstein's Avatar
ehochstein ehochstein is offline
Coach, Volunteer & Mentor
AKA: Evan Hochstein
FTC #5943 (ESGM)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Bloomington, Minnesota
Posts: 933
ehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant future
Re: Problem downloading to CRio

Are you undeploying? I've had problems with that in the past. I haven't used C++ in FRC in around 2 years.
__________________
Minnesota FIRST Senior Mentor | 2013-?

Stratasys Applications Engineering Technician | 2016-?

2009 Regional Win – 2470 @ 10k Lakes (Thanks 2826 and 1714)
2013 WFFA Recipient – 2470 @ 10K Lakes
2016 Ri3D: 'Snow Problem Reveal

The opinions expressed above are the personal opinions of the author and do not necessarily represent the views and opinions of any organization the author is affiliated with.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-01-2013, 14:03
cjlane1138 cjlane1138 is offline
Team 1138
FRC #1138 (Eagle Engineering)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 88
cjlane1138 is an unknown quantity at this point
Re: Problem downloading to CRio

In order to run code that you just downloaded, you have to reboot the CRIO. If you do not, you will be running the same code that you had before you downloaded. The new code needs to be loaded, and the only way to do that is to reboot the CRIO.
__________________
Eagle Engineering 1138
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2013, 14:19
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
Re: Problem downloading to CRio

Are you sure about that? Under 2012 spec, we downloaded repeatedly without reboot of cRio and it worked fine...
Reply With Quote
  #5   Spotlight this post!  
Unread 17-01-2013, 14:45
gitlitz gitlitz is offline
Registered User
FRC #4590
 
Join Date: Jan 2013
Location: israel
Posts: 11
gitlitz is an unknown quantity at this point
Re: Problem downloading to CRio

Hi,
First of all, if it comforts you, we're having the same problem just like you.
We think that the problem is in deleting memory in the cRio. We tried another cRio and it also didn't work, so we think now the problem is with Windriver 2013. We try now working with LabView and as for now the problem doesn't exist..
We also posted a thread here here's the link:
http://www.chiefdelphi.com/forums/sh...d.php?t=111168

In other teams the 2013 Windriver did work, so there must be some problem we didn't encounter yet.
Is your problem is similiar to what I describe?
Do you have some clues what to do???

GreenBlitz 4590
Reply With Quote
  #6   Spotlight this post!  
Unread 17-01-2013, 15:59
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: Problem downloading to CRio

Undeploy isn't needed to my knowledge, seems more like a supersticious focus (or possibly a vestigial operation from before my time). In reality the deploy operation FTP's the compiled .out to the robot, overwriting the existing file, I assume undeploy removes the file, but you can redeploy over the file just as easily.

Have you reimaged your cRio with the new imaging tool for 2013? The updated image would be required for working with the updated WPIlib.
Reply With Quote
  #7   Spotlight this post!  
Unread 17-01-2013, 16:10
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
Re: Problem downloading to CRio

Yes, all software is 2013 spec. Note we are not yet using deploy/undeploy. We are just using the WindRiver Run function to download the code into non-permanent storage.
Reply With Quote
  #8   Spotlight this post!  
Unread 18-01-2013, 04:36
Doron_Sivan Doron_Sivan is offline
Registered User
FRC #4590 (GreenBlitz)
Team Role: Programmer
 
Join Date: Oct 2012
Rookie Year: 2013
Location: Israel
Posts: 11
Doron_Sivan is an unknown quantity at this point
Re: Problem downloading to CRio

Hello, we are from GreenBlitz 4590 and we have the same problem like you. We use 2013 windriver and updates, as well as the 2013 DS and cRio verion 2.
We also posted a thread in this forum:
http://www.chiefdelphi.com/forums/sh...d.php?t=111168

We also can run the robot for the first time, and after that the debugger can't run the code or when we enable it in the DS it shows us errors in the diagnostics window.
We thought maybe the problem is in the cRio, so we tried to change cRio (version 1) but it didn't work. We thought it might be because of the Windriver Workbench - when we tried a sample labview code it worked good.

We can run the code pretty good but we need to reboot the cRio each time. It's not so bad but maybe it's because of a deeper problem. We know that there are teams which don't reboot the robot between runs.

As for now we don't know what caused the problem. We are now exploring deeper the problem. If you have new information write to us in one of the thread, and we will write when we will come to new ideas

Greenblitz 4590
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 12:28.

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