Go to Post I saw a big opening in the bees section and asked if we could sit for this match and was told we were welcome to sit there. Your team made space for about 15 of my team members that came with me. - Debbie [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2011, 09:08
HutchScout HutchScout is offline
Programming Mentor
AKA: Steve Hutchinson
FRC #0617 (The Enginerds)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Richmond, VA
Posts: 9
HutchScout is an unknown quantity at this point
Communications but "No Robot Code"

We're having quite the dilemma here in Richmond. We're coding in C/C++ in Wind River as we have done for the past two years. We can successfully compile/build our code, successfully deploy the code, FTP to the cRIO and see the code, but our Classmate stubbornly insists there's "No Robot Code" to execute.

We've reimaged the Classmate twice and applied all updates. We've tried everything else we can think of. Anyone have any ideas that might help narrow down the problem?

Thanks to everyone in advance for your time and assistance. Getting a little nervous here.
__________________
Don't panic ... it's only ones and zeroes
  #2   Spotlight this post!  
Unread 05-02-2011, 09:16
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Communications but "No Robot Code"

Using the DS, verify the version numbers and put them in a forum post. If the code starts, but runs into version problems, it will not stay running, or will not participate in the protocols.

You may also want to view the print stream that goes to the serial port. You can do this with the NetConsole or using a null modem serial cable. Watch for diagnostics that indicate why the code isn't running, or post them here for others to pear at.

Greg McKaskle
  #3   Spotlight this post!  
Unread 05-02-2011, 11:12
HutchScout HutchScout is offline
Programming Mentor
AKA: Steve Hutchinson
FRC #0617 (The Enginerds)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Richmond, VA
Posts: 9
HutchScout is an unknown quantity at this point
Re: Communications but "No Robot Code"

DS Version: 01.05.11.00
cRIO Image: C-2011_v25

And I don't mean to sound like a n00b but how do I run NetConsole?
__________________
Don't panic ... it's only ones and zeroes
  #4   Spotlight this post!  
Unread 05-02-2011, 11:16
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Re: Communications but "No Robot Code"

Are you trying to connect wirelessly or wired? If you are trying to connect wirelessly then read the text below...

Check one other thing, my kids were having the same problem and I noticed that the blue light on the dLink wasn't blinking. If the blue light isn't blinking then it is not broadcasting the wireless signal. I had them reset the dLink and follow the instructions to set it up for our bot and viola it worked!
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #5   Spotlight this post!  
Unread 05-02-2011, 11:34
HutchScout HutchScout is offline
Programming Mentor
AKA: Steve Hutchinson
FRC #0617 (The Enginerds)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Richmond, VA
Posts: 9
HutchScout is an unknown quantity at this point
Re: Communications but "No Robot Code"

Appreciate the reply. We are successfully communicating with the robot. Under 'Communications' in the Diagnostics tab of the DS we have green lights for the Bridge and Robot. The DS just doesn't recognize that there's any code to run.

Found the NetConsole software but when we enter the IP address for the cRIO in the "Machine Address" field, nothing happens.
__________________
Don't panic ... it's only ones and zeroes
  #6   Spotlight this post!  
Unread 05-02-2011, 11:36
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Re: Communications but "No Robot Code"

Did you set the code to auto run when you power the cRio? (May sound like a silly question but it's one of the mistakes we made early on...) If not then give me a little while to put my hands on a programmer and we'll see if he can help...
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #7   Spotlight this post!  
Unread 05-02-2011, 11:39
HutchScout HutchScout is offline
Programming Mentor
AKA: Steve Hutchinson
FRC #0617 (The Enginerds)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Richmond, VA
Posts: 9
HutchScout is an unknown quantity at this point
Re: Communications but "No Robot Code"

We're coding in C/C++ from Wind River. It was my understanding that C++ code runs automatically by default and you only had to select the automatically run option for LabView. True? Would love for that to be the issue.
__________________
Don't panic ... it's only ones and zeroes
  #8   Spotlight this post!  
Unread 05-02-2011, 11:41
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Re: Communications but "No Robot Code"

Hmmm not sure as this is our first year using C++, programmer on his way though...will snag him as soon as he walks in the door...
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #9   Spotlight this post!  
Unread 05-02-2011, 11:53
HutchScout HutchScout is offline
Programming Mentor
AKA: Steve Hutchinson
FRC #0617 (The Enginerds)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Richmond, VA
Posts: 9
HutchScout is an unknown quantity at this point
Re: Communications but "No Robot Code"

Okay ... finally discovered that the NetConsole wasn't working because we didn't enable it through the nt-ri.ini file. That got the console running and we are able to see that it does try to launch FRC_UserProgram.out but is getting "reference to undefined symbol" errors and fails to load.

Still not working but at least we know we're dealing with a code problem.

Thanks everyone!!!
__________________
Don't panic ... it's only ones and zeroes
  #10   Spotlight this post!  
Unread 05-02-2011, 11:55
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Re: Communications but "No Robot Code"

From programmer:

What is the file extension you are sending to cRio when you deploy the code?
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #11   Spotlight this post!  
Unread 05-02-2011, 18:07
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Communications but "No Robot Code"

Inside the WindRiver preferences, under the FIRST option I believe is a setting to select which .out file is transferred. Make sure it is set to the right file. Also, is your program based on one of the pre-existing samples? If not, you may not have configured the project properly and it may be trying to build the code in the wrong form for how the cRio expects it. I would try downloading one of the included sample programs just to ensure they start up

For the record, the undefined symbol message means the cRio is trying to execute some function and can't actually find it in your code. This is common when you don't have the project configured properly, or you're downloading the wrong file.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
Closed Thread


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 23:39.

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