Go to Post "Magnificent" is the only appropriate adjective for a handlebar moustache. Kudos. - Lil' Lavery [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 01-04-2012, 19:23
programmerB programmerB is offline
Registered User
FRC #0968
 
Join Date: Apr 2012
Location: West Covina, Ca
Posts: 22
programmerB is an unknown quantity at this point
Crio windriver programming problems

So I am a rookie coder trying to get code into our robot. Originally we were able to deploy and run code just fine onto our crio. Then all of a sudden one day we get comms but absolutely no code. I checked the system file within the crio folder and code is indeed being deployed, but the crio refuses to read it. I've already tried reimaging the crio, formatting then reimaging, using our spare crio, updating all utilities, using other computers as driver stations, deploying several different codes, checked the wiring, and pretty much done everything I could think of. If it helps on a side note I also cannot read voltage on the DS about the battery (meaning instead of reading something like 12.00V or even 0.00V we get an empty space about the communications). Any help would very much be appreciated!

P.S. extra details about what we did: try turning off and on the firewall of the deploying computer (no luck), toggle safe mode on/off (did nothing), redownload EVERYTHING (yes everything), the usual undeploy->deploy->reboot->turn on DS (didn't help), windriver deploy/undeploy and manual deploy/undeploy (using ftp).
Reply With Quote
  #2   Spotlight this post!  
Unread 01-04-2012, 20:40
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,817
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 windriver programming problems

Fire up Netconsole, then reset the cRIO to see the console dump for boot/startup errors.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 01-04-2012, 20:53
programmerB programmerB is offline
Registered User
FRC #0968
 
Join Date: Apr 2012
Location: West Covina, Ca
Posts: 22
programmerB is an unknown quantity at this point
Re: Crio windriver programming problems

where is the Netconsole located?
Reply With Quote
  #4   Spotlight this post!  
Unread 01-04-2012, 21:04
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: Crio windriver programming problems

A little painful to get to the first time you do it...but in Eclipse/Windriver-Workbench, on the left hand side, you should (depending on configuration) see two panes - one that's about projects and one that's about targets. You had to create one of these targets in the beginning in order to deploy the first time....

If you right-click on the target, you should see a "Connect" command in the menu. Connect. Then there will be a cascade of items that are found under that connected target. Now right-click on the target again and goto 'Target Tools' -> Target Console ... and when the dialog comes up, you can simply click "OK". You'll get a black text console which looks a lot like a cmd/dos-box. This is the netconsole.

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #5   Spotlight this post!  
Unread 01-04-2012, 21:21
programmerB programmerB is offline
Registered User
FRC #0968
 
Join Date: Apr 2012
Location: West Covina, Ca
Posts: 22
programmerB is an unknown quantity at this point
Re: Crio windriver programming problems

what do I do when i get into the netConsole?
Reply With Quote
  #6   Spotlight this post!  
Unread 01-04-2012, 22:26
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: Crio windriver programming problems

You'll want to report (copy/paste) what it says for bootup. It may give some clues to the folks that were asking.

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #7   Spotlight this post!  
Unread 02-04-2012, 01:00
programmerB programmerB is offline
Registered User
FRC #0968
 
Join Date: Apr 2012
Location: West Covina, Ca
Posts: 22
programmerB is an unknown quantity at this point
Re: Crio windriver programming problems

ok sorry but i am really new at this i could reall use a full step by step
Reply With Quote
  #8   Spotlight this post!  
Unread 02-04-2012, 09:30
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: Crio windriver programming problems

If you don't understand how to follow the step-by-step set of instructions that Bob already posted, I don't know what else would help you. You'll probably be best served by finding a local resource to show you in person. I don't have a good feel for how long it takes to get around the Los Angeles area, but there must be more than a dozen teams within shouting distance of you.
Reply With Quote
  #9   Spotlight this post!  
Unread 04-04-2012, 13:18
enrique's Avatar
enrique enrique is offline
Registered User
FRC #1251 (Tech Tigers)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Florida
Posts: 87
enrique will become famous soon enough
Send a message via Yahoo to enrique
Re: Crio windriver programming problems

I have found that if your program crashes, the crio shows no code. The netconsole will usually show an exception.
Reply With Quote
  #10   Spotlight this post!  
Unread 29-04-2012, 02:00
rainbowdash's Avatar
rainbowdash rainbowdash is offline
Director of Programming
AKA: Souvixada S.
FRC #1671 (Buchanan Bird Brains)
Team Role: Programmer
 
Join Date: Apr 2012
Rookie Year: 2005
Location: Clovis, CA
Posts: 28
rainbowdash is an unknown quantity at this point
Re: Crio windriver programming problems

Do you guys use a debugger? I've found that using a debugger is the main source of hair loss and frustration for many programmers I've met.
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 14:16.

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