Go to Post Welcome to FIRST, the place where you can be competitive in a team. Here people can learn more in one year of FIRST than in four years of high school. - dude__hi [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-06-2011, 14:58
ElliotCourant's Avatar
ElliotCourant ElliotCourant is offline
Elliot Courant
AKA: Elliot Courant
FRC #3038 (ICE Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Minnesota
Posts: 19
ElliotCourant is an unknown quantity at this point
Crio Not Taking Code (Different Problem)

I am trying to deploy some c++ code to our crio and it acts like it is deploying but then when i go back into the driver station it says that there is no code on the robot. I have tried reimaging it and i also reset it to the factory defaults. Is there any way to fix this?
__________________
"Error, Cannot Find Back-End!" -WindRiver C++ Error
"If you aren't getting any errors while you are programming, then you are doing something wrong." -Elliot Courant
Reply With Quote
  #2   Spotlight this post!  
Unread 23-06-2011, 15:38
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Crio Not Taking Code (Different Problem)

After deploying the code, are you power cycling the cRIO? If you don't have code on there, deploy, then don't turn it off then back on, the DS will show no code.

If you are, then you'll want to watch the console as the cRIO comes up to see if there's an error that is causing the program to not load properly. For example, if you're accessing memory during initialization that hasn't been allocated your program will crash and it will look like there isn't code running (which technically there isn't because it crashed). If your code has an error like this, you will see a whole bunch of stuff spew onto the console that will point you in the right direction.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-06-2011, 15:45
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,754
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Crio Not Taking Code (Different Problem)

It's possible your code is bombing out right away - use NetConsole to see if that is happening.
You'll find NetConsole in your Windows Programs menu. It was installed with the other FRC Utilities.


From the C++ Getting Started Guide
Note: Netconsole will only work if the netmask on the interface connected to the robot is set to 255.0.0.0

P.S. A little late I see...
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-06-2011 at 15:47.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-06-2011, 16:53
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: Crio Not Taking Code (Different Problem)

Quote:
Originally Posted by ElliotCourant View Post
I am trying to deploy some c++ code to our crio and it acts like it is deploying...
"Deploy" can mean different things based on who's saying it, what tool they're using, and what they're thinking when they say it. You might be doing something subtly incorrect, or even wildly incorrect for what you want to have happen. Please tell us exactly what you're doing when you try to deploy -- which buttons you're clicking, what keys you're pressing, how long you're waiting, that sort of detail.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-06-2011, 18:37
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Crio Not Taking Code (Different Problem)

Im am working with Elliot. We have found another issue. Every once and a while an message woud come up the an I/O unit was not install properaly
Reply With Quote
  #6   Spotlight this post!  
Unread 23-06-2011, 18:54
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,754
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Crio Not Taking Code (Different Problem)

That just means that the optional Cypress board is not plugged in.
It's meaningless to you if you don't use it.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 23-06-2011, 19:36
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Crio Not Taking Code (Different Problem)

so then why would it give us that error message?
Reply With Quote
  #8   Spotlight this post!  
Unread 23-06-2011, 20:13
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: Crio Not Taking Code (Different Problem)

The message tells you that the I/O unit is not connected. You will see it if the I/O unit is not connected. If you don't have the I/O unit connected, the message is not describing an error; it is describing an expected condition.
Reply With Quote
  #9   Spotlight this post!  
Unread 23-06-2011, 20:13
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,754
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Crio Not Taking Code (Different Problem)

If you were using the Cypress board for IO, then it would be important to you to know you forgot to plug it in.

The Driver station can't tell if we want it to be there or not, so it just tells us when the Cypress isn't connected and lets us worry about if that's a problem or not.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-06-2011 at 08:53.
Reply With Quote
  #10   Spotlight this post!  
Unread 23-06-2011, 20:35
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Crio Not Taking Code (Different Problem)

so how do we fix the problem of the code not staying on the crio
Reply With Quote
  #11   Spotlight this post!  
Unread 23-06-2011, 22:04
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: Crio Not Taking Code (Different Problem)

Quote:
Originally Posted by tomy View Post
so how do we fix the problem of the code not staying on the crio
We can't tell you what to fix if you don't give us some details about how it's going wrong.

Quote:
Originally Posted by Alan Anderson View Post
Please tell us exactly what you're doing when you try to deploy -- which buttons you're clicking, what keys you're pressing, how long you're waiting, that sort of detail.
Reply With Quote
  #12   Spotlight this post!  
Unread 23-06-2011, 22:05
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Crio Not Taking Code (Different Problem)

We download the C++ program to the robot and reboot it with the clam. When it turns back on the robot shows no code
Reply With Quote
  #13   Spotlight this post!  
Unread 27-06-2011, 20:20
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Crio Not Taking Code (Different Problem)

Quote:
Originally Posted by tomy View Post
We download the C++ program to the robot and reboot it with the clam. When it turns back on the robot shows no code
When you say "Download" are you referring to the "FIRST Deploy" menu or are you talking about running or debugging your application through the "Remote Systems" debugger connection?

Have you checked the console? Is the FRC_UserProgram.out ending up on the cRIO in /ni-rt/system/ as expected?
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:29.

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