Go to Post If this was really about changing the culture, FIRST would be on Will.I.Am's website. - Meredith Novak [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 02-02-2010, 06:17 PM
brianelite brianelite is offline
Registered User
FRC #2898
 
Join Date: Feb 2009
Location: oregon
Posts: 36
brianelite has a spectacular aura aboutbrianelite has a spectacular aura aboutbrianelite has a spectacular aura about
Re: Code instantly terminates on crio

Wind River is/was a billion dollar company. I highly doubt their software is written by "volunteers".

I went through this guide to create a fresh example project: http://www.chiefdelphi.com/forums/sh...ad.php?t=81064

When I deploy code it does not deploy. On the target console it says something along the lines of "deleted"....

When I try and run/debug code the code goes terminates within a second, although the task shows up in the vxworks connection for a second. When I add a breakpoint, the code terminates at the breakpoint (so the farther down you move the breakpoint down... the longer the code "runs" without throwing up... very bizarre) ... the breakpoint says something like "cannot find source file at line:x" or something like that...

I have had this code problem happen on three laptops and two compact rios, even after reinstallation of windriver and reformatting the device... Does it matter if labview/windriver didn't activate? maybe vxworks doesn't like unsigned code and kills it or somethinging?
__________________

Last edited by brianelite : 02-03-2010 at 10:16 AM.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-03-2010, 11:05 AM
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: Code instantly terminates on crio

Quote:
Originally Posted by brianelite View Post
I went through this guide to create a fresh example project: http://www.chiefdelphi.com/forums/sh...ad.php?t=81064
Whoa, that's a bit cumbersome, and seems rife with opportunities for something to be missed. It looks like it was written by someone who had managed to modify the template so that the normal procedure no longer worked.

Why not do it the way you're supposed to? See Section 2 of the 2010 FRC Control System manual, which has the proper instructions starting on page 39.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-03-2010, 11:24 AM
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Code instantly terminates on crio

Try using the Simple Robot template in the examples section of WindRiver. It's a great jump point. Just delete the code in the Operator Control and Autonomous functions and you'll have a nice starting project to work from.

Now another thing:

Quote:
Originally Posted by brianelite View Post
Wind River is/was a billion dollar company. I highly doubt their software is written by "volunteers".
Yes, but the API you use to code the robot, WPILib, was not made by Wind River.

Stop being so aggressive. There's lots of different things that could be causing the issue, but that's besides the point. The people here on Chief Delphi, including mentors, FIRST members from other teams, and professionals from LabVIEW and WPI, are more than willing to help anyone that asks for it. You'll find though, that if you start blaming everyone and get angry at them, fewer and fewer people will offer you help. Relax, and remember that you're representing your team to the entire FIRST community here.
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 02-03-2010, 11:25 AM
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Code instantly terminates on crio

Quote:
Originally Posted by brianelite View Post
Wind River is/was a billion dollar company. I highly doubt their software is written by "volunteers".
Wind River never quite made it to a billion dollar company before being acquired by Intel.
In fact, while they aspired to that for a long time, they fell short by a lot.
More like a 1/4 billion.
Anyway, the Wind River GNU compiler and, for a very long time, their network code actually had been largely written by volunteers.

Edit: the blurb about volunteers is in no way intended to denigrate Wind River.
Wind River's pervasive presence in the embedded systems arena, and the resultant scrutiny brought to bear on the GNU tools, contributed significantly to the quality of those tools.
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)

Last edited by gvarndell : 02-03-2010 at 11:39 AM.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-03-2010, 06:59 PM
brianelite brianelite is offline
Registered User
FRC #2898
 
Join Date: Feb 2009
Location: oregon
Posts: 36
brianelite has a spectacular aura aboutbrianelite has a spectacular aura aboutbrianelite has a spectacular aura about
Re: Code instantly terminates on crio

The issue is the same whether it is SimpleRobot, 2010ImageDemo, or any of the other examples I have tried, as I previously mentioned. I initially followed the "proper way"... Unfortunately, it gives me this problem. I have gone through the instructions multiple times on multiple computers, even different compact rios. Exact same problem.
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 02-03-2010, 08:53 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: Code instantly terminates on crio

Quote:
Originally Posted by brianelite View Post
I have gone through the instructions multiple times on multiple computers, even different compact rios. Exact same problem.
Unless every one of the multiple computers is oddly configured in the same way, I strongly suspect that you're not following the instructions the way they need to be followed, or that you've left out a step in setting up your system.

I don't have a lot of experience using the WindRiver environment, so I can't ask helpful questions about it in particular. But I can ask this: what version of the cRIO image is loaded?
Reply With Quote
  #7   Spotlight this post!  
Unread 02-05-2010, 10:00 PM
simpsonboy77 simpsonboy77 is offline
Registered User
AKA: Garrett Dicken
FRC #0041 (RoboWarriors)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New Jersey
Posts: 87
simpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond repute
Re: Code instantly terminates on crio

Quote:
Originally Posted by Alan Anderson View Post
what version of the cRIO image is loaded?
It should be something along the lines of 2010*blah blah blah*V19. The V19 is very important, and we would like a response about it. If you are unsure what you have, reimage the cRio, and make sure you select the correct environment (C/C++ Windriver). Check the format checkbox, and begin the reimage. Make sure to do this on a fresh battery.

Check your IP settings.
Check that you are trying to load the correct file, with the correct team #. To check this, open windriver, and under window select preferences. Then click "FIRST Downloader Preferences"

I had problems the first few days getting the cRio to accept code. I found it invaluable to look at the RS232 debug output. To read this use your favorite terminal service (hyperterminal is default on Windows), and connect via serial with a NULL MODEM cable. My team had no null modem cables, so we purchased a converter, and it works great. Be sure the console out DIP switch is set to on.

You will know when it is receiving data because the cRio spits out a lot of data while booting.

As for copying text, screenshots work.

EDIT: By using the driver station, don't use the 2009 kwikbyte thing. Use the classmate PC and login as the driver. There is also an option to install the driver station on another laptop. One must be on for the cRio to work
__________________
2013 - Present MAR Control System Adviser and FTAA
2009 - Present Programming an Electrical Mentor Team 41
2005 - 2008 Team 41 Programmer
2008 NYC Regional Winner

Last edited by simpsonboy77 : 02-05-2010 at 10:03 PM. Reason: reordered for clarity
Reply With Quote
  #8   Spotlight this post!  
Unread 02-03-2010, 09:06 PM
tdidi tdidi is offline
Registered User
FRC #2619
 
Join Date: Jan 2010
Location: Midland, MI
Posts: 7
tdidi is an unknown quantity at this point
Re: Code instantly terminates on crio

Quote:
Originally Posted by brianelite View Post
When I deploy code it does not deploy. On the target console it says something along the lines of "deleted"....

It might just be a typo, but i do know that in windriver you must "undeploy" the code currently on the cRIO, then "download" the new code to it after its finished undeploying. Then when you need to reset the robot to run the new code.

Also, I've spent a lot of time debugging robot code recently (so trust me on this one), and that line your referring to that says "deleted..." is normal, and is always present when you reset the robot.

What is the last thing being outputted to the console before it stops?

Last edited by tdidi : 02-03-2010 at 09:08 PM.
Reply With Quote
  #9   Spotlight this post!  
Unread 02-04-2010, 03:06 AM
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,509
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Code instantly terminates on crio

In addition, what are you seeing on the driver station? Does it stay at no code? What errors do you see in the diagnostic window?
Reply With Quote
  #10   Spotlight this post!  
Unread 02-05-2010, 08:37 PM
brianelite brianelite is offline
Registered User
FRC #2898
 
Join Date: Feb 2009
Location: oregon
Posts: 36
brianelite has a spectacular aura aboutbrianelite has a spectacular aura aboutbrianelite has a spectacular aura about
Re: Code instantly terminates on crio

I'm not using the driver station. But it should still work right?

How do you copy text from the target console?
__________________
Reply With Quote
  #11   Spotlight this post!  
Unread 02-05-2010, 09:54 PM
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,509
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Code instantly terminates on crio

Brian, you have to run the driver station for the robot to function.

Let's start over.

Did you perform the bench test as spelled out in the getting started manual?
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
cRio Code problems Aaron V FRC Control System 2 01-14-2010 12:59 PM
downloading code to cRIO mint564 C/C++ 6 02-10-2009 07:30 PM
cRIO has no code 2roy999 C/C++ 7 01-19-2009 02:01 AM
C++ code terminates instantly king vash C/C++ 1 01-10-2009 08:11 PM
Chat Instantly - Florida <=> South CA <=> Boston NOW! soap108 General Forum 26 06-03-2003 11:43 AM


All times are GMT -5. The time now is 10:43 AM.

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