Go to Post How about "Lebron"? Wait, no, you'll be dooming yourselves to failure the last 30 seconds of every match. - Travis Hoffman [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 23-01-2014, 10:10
tomstimac tomstimac is offline
Registered User
FRC #3356
 
Join Date: Jan 2014
Location: cleveland
Posts: 7
tomstimac is an unknown quantity at this point
Status Bar shows download complete, but no robot code found by driver station

My team is having a problem...

The code builds fine and then we use the correct ".out" file...once we start the transfer the status bar pops up saying it is downloading fine and then shows as completed, but when we bring up the driver station it says it is connected but there is no robot code.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2014, 15:28
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Re: Status Bar shows download complete, but no robot code found by driver station

Just covering all the possible options... you rebooted the robot after you uploaded the code, right?
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2014, 16:23
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: Status Bar shows download complete, but no robot code found by driver station

This usually happens if your code is throwing an exception in a constructor or the DisabledInit routine (exceptions elsewhere would show "No Robot Code" after running the offending code)

Or more likely:

You are calling a function that is not defined. If you include a function declaration (like you normally put in a header file) but fail to define it (typically what is in a cpp file), you will not get a compile error or warning, simply "No Robot Code" (the compiler assumes that this function exists in an external DLL, when it gets to the robot, if that dll isn't there, it will not execute)
Reply With Quote
  #4   Spotlight this post!  
Unread 23-01-2014, 17:02
tomstimac tomstimac is offline
Registered User
FRC #3356
 
Join Date: Jan 2014
Location: cleveland
Posts: 7
tomstimac is an unknown quantity at this point
Re: Status Bar shows download complete, but no robot code found by driver station

Yes we rebooted the robot before we tried to use.

We are simplytrying to use the sample code that you find as a part of the instructions on the website. Would there be some undefined variables in that code that we should look for?

Thanks for the quick replies
Reply With Quote
  #5   Spotlight this post!  
Unread 23-01-2014, 18:54
tomstimac tomstimac is offline
Registered User
FRC #3356
 
Join Date: Jan 2014
Location: cleveland
Posts: 7
tomstimac is an unknown quantity at this point
Re: Status Bar shows download complete, but no robot code found by driver station

The communication light is green, the robot code is red, and the joysticks is green, the bridge and robot is green

The error code that shows up in the box to the right in the driver station says the following : warning code is Warning <code> 44002 occurred at PIng results: link-bad, DS radio(.4)-bad, robor radio(.1) - good, cRIO (.2)- good, FMS-bad driver station.

Not sure what that means
Reply With Quote
  #6   Spotlight this post!  
Unread 23-01-2014, 22:19
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: Status Bar shows download complete, but no robot code found by driver station

Quote:
Originally Posted by tomstimac View Post
We are simplytrying to use the sample code that you find as a part of the instructions on the website.
Do you mean that you created your project using the FRC Simple Robot Template as described in the Creating a robot project section? If not, how did you create it?


That 44002 warning is just telling you what devices are reachable on the network. What you posted is the normal message most teams will see when connecting wirelessly to the robot's D-Link access point.
Reply With Quote
  #7   Spotlight this post!  
Unread 24-01-2014, 07:25
tomstimac tomstimac is offline
Registered User
FRC #3356
 
Join Date: Jan 2014
Location: cleveland
Posts: 7
tomstimac is an unknown quantity at this point
Re: Status Bar shows download complete, but no robot code found by driver station

Yes, we did use the template in the instruction provided on the link found on the first robotics website.

We followed the instructions for how to dowload that .out file to the cRio but we cant seem to get anything to happen and the error shows there is no robot code.

This the first time for the team so there seems to be something that we are missing
Reply With Quote
  #8   Spotlight this post!  
Unread 24-01-2014, 12:17
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: Status Bar shows download complete, but no robot code found by driver station

Just to verify, you have flashed the robot with the FRC Imaging tool for C++ mode, and used the proper image file for the 2014 WPI Lib?

Is drivers station's Connected/Communication light green?

Have you verified your network configuration is as simple as it can be? If you are wired, disable your wifi connection, make sure your IP is 10.__.__.>5, and your subnet is 255.255.255.0, and check the advanced settings for your TCP/IP and make sure there are no alternate configurations.
Reply With Quote
  #9   Spotlight this post!  
Unread 24-01-2014, 12:42
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,576
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Status Bar shows download complete, but no robot code found by driver station

Quote:
Originally Posted by tomstimac View Post
Yes, we did use the template in the instruction provided on the link found on the first robotics website.
There's lots of links on the FIRST website. Please provide the exact link you used. Please post the exact code you are using.

If the code is crashing, like DjScribbles suggests, you would see no robot code. You can use netconsole to see any messages from the code when it crashes.
Reply With Quote
  #10   Spotlight this post!  
Unread 24-01-2014, 17:39
tomstimac tomstimac is offline
Registered User
FRC #3356
 
Join Date: Jan 2014
Location: cleveland
Posts: 7
tomstimac is an unknown quantity at this point
Re: Status Bar shows download complete, but no robot code found by driver station

I will try to use the net console and see what happens.

The code that was used was based on http://wpilib.screenstepslive.com/s/...-robot-project
Reply With Quote
  #11   Spotlight this post!  
Unread 26-01-2014, 22:15
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: Status Bar shows download complete, but no robot code found by driver station

Definitely check the NetConsole. It will tell you what is going wrong for sure. Either there is not robot code on the bot, or the code crashes upon loading. I've only ever had issues with the latter.
I've had issues with an 'undefined symbol'... In which case, there is something weird going on... to which I still do not understand.

You might see a failure to allocate something- if so, check that you are calling the right constructor for your components and that you have the right cRIO modules plugged into the right ports.
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage
Reply With Quote
  #12   Spotlight this post!  
Unread 27-01-2014, 20:05
tomstimac tomstimac is offline
Registered User
FRC #3356
 
Join Date: Jan 2014
Location: cleveland
Posts: 7
tomstimac is an unknown quantity at this point
Re: Status Bar shows download complete, but no robot code found by driver station

I tried using the netconsole and got nothing..it acts like there is no Crio...I know there is a conenction since i can reboot from teh driver station. I tried the troubleshooting on the netconsole and did nto get anywhere.

Is anyone willing to have a 20-30 minute phone conversation where i can show the code and others items over a "webex"

Thanks

Tom
Reply With Quote
  #13   Spotlight this post!  
Unread 27-01-2014, 23:23
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: Status Bar shows download complete, but no robot code found by driver station

Quote:
Originally Posted by tomstimac View Post
I tried using the netconsole and got nothing..it acts like there is no Crio...
Did you enable NetConsole support when you imaged the cRIO?
Reply With Quote
  #14   Spotlight this post!  
Unread 28-01-2014, 13:04
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: Status Bar shows download complete, but no robot code found by driver station

Are you using wireless? I've run into a lot of errors using wireless that have to eventually get ironed out, but if you're just trying to get code definitely use a tether for starters, and make sure that:
1. it is the .out in the non-partial image folder, just making sure.
2. the cRIO is imaged properly
3. Your computer has the proper IP address
4. You built/compiled the code before deploying
5. You rebooted the cRIO after deploying code
6. The kernel processor architecture is correct

The last one is the most probable error, giving what you've stated. That threw an error for our team for a pretty long time. Most of these should have thrown other errors, or you've said you've done them, but it's a good checklist anyways.
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."
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: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