Go to Post ...and that is exactly why Dave is the coolest nerd I know. - Rich Kressly [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #16   Spotlight this post!  
Unread 20-01-2010, 23:37
bcieslak
 
Posts: n/a
Re: No Code Error

You can add us to the no code error issue too.
we are running the wind river tools
We tried deploying the default code and it seemed to download ok but the driver station said no robot code..
Crio has the v19 image...we updated the workbench to the latest update 20100107 . we cant check error messages via the serial port because the crio is not talking back to the laptop for some reason.

Here's the catch..we also tried using a laptop with last years tools on it and we were able down load and run the default program

Any Clues??? I sure didn't plan spending the first three weeks of build season getting the tools to work...

Brian
Team 1714
Sr Firmware Engineer
Rockwell Automation
Reply With Quote
  #17   Spotlight this post!  
Unread 21-01-2010, 01:31
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: No Code Error

Quote:
Originally Posted by bradleat View Post
Well i get some error codes, I suppect they are related to hardware failure, but I have to rule out the software side first.

I attached a screen copy of the errors.

This error get thrown when I try to debug from Windriver following the instructions from the Getting Started with C.pdf document
Based on your screen shot, the WPILib you are linking against is expecting FPGA version 2010 revision 1.1.0 (which has GUID E0037A37F5C5D7F6A40E3C03D3CE51DD, which you can see in the missing symbols). This version was shipped on the DVD distribution for 2010. The cRIO image v19 includes FPGA version 2010 revision 1.3.0 (which has GUID AD9A5591CC64E4DF756D77D1B57A549E).
Reply With Quote
  #18   Spotlight this post!  
Unread 21-01-2010, 01:35
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: No Code Error

Quote:
Originally Posted by bcieslak View Post
we cant check error messages via the serial port because the crio is not talking back to the laptop for some reason.
Have you tried the new NetConsole interface? It allows you to see the console without a serial port (which is especially handy if you are using the serial port to run your Black Jaguars!)

Quote:
Originally Posted by bcieslak View Post
Here's the catch..we also tried using a laptop with last years tools on it and we were able down load and run the default program
If last year's code runs on the robot, then you haven't updated the image to v19 successfully.
Reply With Quote
  #19   Spotlight this post!  
Unread 21-01-2010, 09:14
SteveD SteveD is offline
Registered User
FRC #0888
 
Join Date: Jan 2010
Location: Glenelg, MD
Posts: 21
SteveD is an unknown quantity at this point
Re: No Code Error

We are having the same error. We are using labview. It connects to the robot and it successfully deploys code, but on the driver station says no code
Reply With Quote
  #20   Spotlight this post!  
Unread 21-01-2010, 09:53
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,752
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: No Code Error

Quote:
Originally Posted by SteveD View Post
We are having the same error. We are using labview. It connects to the robot and it successfully deploys code, but on the driver station says no code
Are you logging out of developer and quitting LV in order to run the DS? Quitting LV aborts any cRIO code it is debugging.

Another thing that can cause this is having the wrong cRIO image, v19 is the latest, and the diagnostics tab on the DS will show the version.

Greg McKaskle
Reply With Quote
  #21   Spotlight this post!  
Unread 21-01-2010, 09:59
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: No Code Error

We had a similar issue last year getting a No Code error. This happened because we did not pack the data correctly to send to the dashboard. I think there was a specific sequence used and the dashboard won't accept the data packets if it's not correct...

If this issue persists, one might want to try taking out the data packing code altogether and try to get it to run.
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
Reply With Quote
  #22   Spotlight this post!  
Unread 21-01-2010, 11:06
bcieslak
 
Posts: n/a
Re: No Code Error

Quote:
Originally Posted by jhersh View Post
Have you tried the new NetConsole interface? It allows you to see the console without a serial port (which is especially handy if you are using the serial port to run your Black Jaguars!)



If last year's code runs on the robot, then you haven't updated the image to v19 successfully.
Hi Joe, I was starting to suspect that...I had another mentor reimage the Crio and he asssured me it was complete but I am starting to have my doubts...Is there an easy way to check the version that is running in the Crio?

I am also not sure that he installed the labview update. Since we are running wind river he may have thought we didn't need it...What would be the effect of not updating that?


thanks again...
Brian
Reply With Quote
  #23   Spotlight this post!  
Unread 21-01-2010, 11:15
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: No Code Error

Quote:
Originally Posted by bcieslak View Post
I am also not sure that he installed the labview update. Since we are running wind river he may have thought we didn't need it...What would be the effect of not updating that?
If you didn't update LabVIEW, you didn't get the v19 image that comes with the updated imaging tool.
Reply With Quote
  #24   Spotlight this post!  
Unread 21-01-2010, 11:34
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: No Code Error

Quote:
Originally Posted by bcieslak View Post
Is there an easy way to check the version that is running in the Crio?
The cRIO image version is displayed on the Driver Station at the bottom of the Diagnostics tab.
So it's easy to double check.
Attached Thumbnails
Click image for larger version

Name:	DignosticsTab.jpg
Views:	42
Size:	27.2 KB
ID:	8354  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #25   Spotlight this post!  
Unread 21-01-2010, 23:15
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: No Code Error

Quote:
Originally Posted by bcieslak View Post
Hi Joe, I was starting to suspect that...I had another mentor reimage the Crio and he asssured me it was complete but I am starting to have my doubts...Is there an easy way to check the version that is running in the Crio?

I am also not sure that he installed the labview update. Since we are running wind river he may have thought we didn't need it...What would be the effect of not updating that?
Like Mark said... Driver Station Diagnostics tab.

You can tell if the update worked by looking at the version of the image that the imaging tool is trying to send to the cRIO when you enable formatting the controller.
Reply With Quote
  #26   Spotlight this post!  
Unread 22-01-2010, 01:47
zombiezen's Avatar
zombiezen zombiezen is offline
Registered User
AKA: Ross Light
FRC #0973 (Greyhound Robotics)
Team Role: College Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Atascadero
Posts: 12
zombiezen is a jewel in the roughzombiezen is a jewel in the roughzombiezen is a jewel in the roughzombiezen is a jewel in the rough
Re: No Code Error

I ended up figuring out the issue on mine, hopefully this helps others:

My target install machine is running Windows 7. According to a Windows guy I know, Microsoft changed the security API for a few different things going from Vista to 7, especially concerning a feature called UAC. UAC does not allow programs to write directly to the C: drive, so certain programs will not function properly.

One of these programs that fails (silently) is the WindRiver installer.

The solution? Log into an adminstrator account, go to Control Panel -> User Accounts and Family Safety -> User Account. Choose "User Account Control" settings (the infamous UAC). Slide the bar to the bottom, and restart your computer. You have now disabled UAC; you can enable it later (probably after build season).

Now for the fun part. Remove WindRiver entirely (i.e. blow away the C:\WindRiver directory). Pop in the WindRiver install DVD and run the setup program. It should install significantly faster. After that, run the update program on the same disk, then install the latest WPI updates. Once you've done that, everything should work properly.

Hope that helps!
__________________
Cheers,
Ross Light

http://www.zombiezen.com/
Reply With Quote
  #27   Spotlight this post!  
Unread 22-01-2010, 09:55
bcieslak
 
Posts: n/a
Smile Re: No Code Error

Yippeee!! everything is finally working....We re-imaged the Crio, made sure 'ALL' the updates were applied to the driver station and the development laptop, compiled then downloaded the BuiltinDefaultCode.out file. Then we added Joe's accelerometer code and fixed the I2C.cpp file. and all still worked.

We had some problems with the IterativeDemo but I we'll revisit that later. The BuiltinDefaultcode is what we will base our robot code on.

Thanks to all especially Joe Hersch for all the info and his patience..They don't pay you enough...Every one should send Joe a Starbucks gift card so he can buy enough coffee to keep him awake when he sending those responses at 3 AM..

Brian C
Reply With Quote
  #28   Spotlight this post!  
Unread 24-01-2010, 15:45
KickNazer KickNazer is offline
Registered User
FRC #3003 (TAN(X))
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Canandaigua, NY
Posts: 1
KickNazer is an unknown quantity at this point
Re: No Code Error

Quote:
Originally Posted by bcieslak View Post
You can add us to the no code error issue too.
we are running the wind river tools
We tried deploying the default code and it seemed to download ok but the driver station said no robot code..
Crio has the v19 image...we updated the workbench to the latest update 20100107 . we cant check error messages via the serial port because the crio is not talking back to the laptop for some reason.

Here's the catch..we also tried using a laptop with last years tools on it and we were able down load and run the default program

Any Clues??? I sure didn't plan spending the first three weeks of build season getting the tools to work...

Brian
Team 1714
Sr Firmware Engineer
Rockwell Automation
We are having i believe, the same issue. We installed Wind River Workbench 3.0 and LabView on 3 separate computers and our atom we received this year in our kickoff kit. All of the computers are updated with the following...

WorkbenchUpdate20100107.exe
WPILibSource20100107.zip
NetConsoleClient_1.0.0.4.zip
FRCLabVIEWUpdate2.0for2010.zip
FRCLabVIEWUpdate1.0for2010.zip
DSUpdate1.0for2010.zip

The cRIO was successfully imaged with v19 on a wired connection. We used "VxWorks Downloadable Kernal Module Sample Project" named "Default Robot Main Program" as the code to test our connection with though our router we received in our kickoff kit last year as a rookie team. It built fine and we had set our team number correct in workbench options as well. When we downloaded the .out file onto our cRIO using a wired connection through the router it said it was successful and went fast. When we logged into our driver staion in the atom it said the cRIO image was v19 and everything was green expect it said "No Robot Code." Last year we had a similar issue when the downlao to the cRIO would say done successfully wasn't actually. The way we fixed it last year was by another team's programmer working on it and doing a couple, more updates.

Did we miss some updates? How can we fix it? Did we use the wrong build in workbench?

Also, what does the atom's static IP have to be to run the driver station. And what are all of the other IP's we need for other components like the cRIO (just to double check).

Ad finally, Do we have to use the blue router from last years kit to run the station or is it possible/allowed to set up ad-hoc or something o nthe atom to host the single to the robot?

Thanks! Love the forum!
Reply With Quote
  #29   Spotlight this post!  
Unread 26-01-2010, 11:26
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: No Code Error

Quote:
Originally Posted by zombiezen View Post
UAC does not allow programs to write directly to the C: drive, so certain programs will not function properly.
I love Windows 7 and Vista (call me a Micro$oft fanboy; I don't care), but UAC was the one thing I couldn't stand on both Vista and 7. It's the first thing I shut off when I get a new computer with either OS on it. It fixes so many problems instantly...
__________________
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code error? niagra127 Programming 12 13-02-2008 20:35
Code Error? darkdwarven Programming 1 08-02-2008 00:42
Error in code light on, trouble finding error Bryan Herbst Programming 16 12-10-2007 21:59
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07
C++ Code Error? Adam Shapiro Programming 9 20-01-2003 13:24


All times are GMT -5. The time now is 14:21.

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