Go to Post the jocks may have muscle, but we have extruded aluminum :D - [527]phil [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 22-01-2013, 20:53
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Code Will Not Load

I have set up the robot hardware (cRIO, D-Link, Driver Station) according to the "Getting started with the 2013 control system" document on the FIRST website. However, when I open up the Driver Station Application, the "communications" light is green, but the code will not show up. I have checked the options in windriver under Window->Preferences->FIRST Dowloader Preferences, and when I hit FIRST->Deploy, the code acts as though it is deploying to the robot, but the Driver Station always says there is no code on the cRIO. Does anyone know what could be causing this?
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2013, 20:55
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Re: Code Will Not Load

I also get an error message on the Driver Station that says:

FRC: Driver Station ping status has changed. Warning <code> 44002 ocurred at ping results: link-good, DSradio(.4)-bad, robot radio(.1)-bad, cRIO(.2)-bad, FMS-bad driver station.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 22-01-2013, 21:56
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: Code Will Not Load

Are you connecting using wired ethernet, or wireless? The ping status shows that you don't have a network connection to the cRIO.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-01-2013, 22:43
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Re: Code Will Not Load

This is when tethered from my laptop to the cRIO. I understand that it is saying that the connection is bad, but the driver station shows that it is good, if you look at the green lights on the bottom left of the screen.
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 23-01-2013, 09:56
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Re: Code Will Not Load

Is your code crashing for some reason? I had this problem last night. If in the console on the DS, it says something about a lack of robot code, but the robot code light is on, this may be your problem.
Check to make sure you aren't allocating already used resources or such.
Reply With Quote
  #6   Spotlight this post!  
Unread 23-01-2013, 10:26
GrimmReaper's Avatar
GrimmReaper GrimmReaper is offline
Registered User
FRC #2046 (Bear Metal)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Maple Valley, WA
Posts: 24
GrimmReaper is on a distinguished road
Re: Code Will Not Load

and if your code is crashing (i.e. with a null pointer exception or something like that) you can see that with NetConsole, if you open netconsole then reboot you should see errors if there are any - you should also see if it's trying to load the FRCUserProgram.out that should be deployed if your code got there.
Reply With Quote
  #7   Spotlight this post!  
Unread 23-01-2013, 10:58
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Re: Code Will Not Load

Quote:
Originally Posted by Toa Circuit View Post
If in the console on the DS, it says something about a lack of robot code, but the robot code light is on, this may be your problem.
The robot code light is not on in the driver station.
__________________
Reply With Quote
  #8   Spotlight this post!  
Unread 23-01-2013, 11:44
kenfox kenfox is offline
Registered User
FRC #3322 (Eagle Imperium)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Ann Arbor, MI
Posts: 52
kenfox is a glorious beacon of lightkenfox is a glorious beacon of lightkenfox is a glorious beacon of lightkenfox is a glorious beacon of lightkenfox is a glorious beacon of light
Re: Code Will Not Load

There was a bug in Robot Builder that caused C++ code to compile fine, but not load on the robot. It made me realize that debugging by deploying code and rebooting the cRIO is not enough.

Use the FRC instructions to set up your C++ (http://wpilib.screenstepslive.com/s/...iver-workbench) and then follow the debug instructions (http://wpilib.screenstepslive.com/s/...-robot-program) instead of deploying and rebooting. You'll be given lots more information and will not have to guess about what's happening. Once you have confidence that things work, you can switch between deploy+reboot and debugging as needed.

It is more difficult to get going, but if nobody on your team can get debugging to work, you're going to have a very rough time with C++. It's not too late to switch languages!
Reply With Quote
  #9   Spotlight this post!  
Unread 23-01-2013, 13:23
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Re: Code Will Not Load

Thanks very much, I'll check that out when we get up to the shop tonight.
__________________
Reply With Quote
  #10   Spotlight this post!  
Unread 23-01-2013, 20:07
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Re: Code Will Not Load

Ok, I'm not sure how, but for a few minutes I could change what code was on the robot. After that, the code light stayed green but the code would not update. I was following the instructions in the "Getting Started With C++" document, but when I tried to Undeploy the code from the cRIO, I got an error message saying that I could not.
__________________
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 03:32.

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