Go to Post I think its great that some teams are 100% student built; but I would also hope that 100% of their students are mentor advised. - =Martin=Taylor= [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 13-01-2010, 21:49
Al3+'s Avatar
Al3+ Al3+ is offline
ARTist
AKA: Anthony
FRC #0840 (Aragon Robotics Team)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: San Mateo, CA
Posts: 58
Al3+ is a jewel in the roughAl3+ is a jewel in the roughAl3+ is a jewel in the rough
Code not loading properly

I'm trying to load the built-in default code provided in the WindRiver examples. However, when I deploy it, reboot the cRIO, and try to run it, the Classmate says there's no code. It does detect the stop button and joysticks, so the Classmate doesn't seem to be the problem. I think that the code might not be deploying correctly, although there are no errors when I hit download.

I've installed all the software updates, and set the computer's IP to 10.8.40.6 (team 840), so I don't know what is going wrong...

A few things of note
- the 5V LED on the power distribution block isn't lit. Could this be the problem?
- if I try to connect from the "Remote Systems" tab, I get the following error:
Quote:
Wed Jan 13 18:47:52 2010
Target name is 10.8.40.2
tgtsvr (VxWorks6x_10.8.40.2@AragonRobotics): Wed Jan 13 18:47:52 2010
WTX Library version: 4.1.1.22
Tgtsvr core version: 4.1.1.17
Wind River Target Server: Win32 version
Connecting to the target agent ...
... switching to WDB4 mode ... ... succeeded !
Loading plug-in for VxWorks... succeeded.
Checking License... OK
VxWorks plugin version: 4.1.1.11
Attaching elf OMF reader for PPC CPU family... succeeded.

Differences for module "vxWorks" segment's address 0x100000:
Offset Target Value Host Value
0x152 0x9c 0x9d
0x153 0x84 0xd0
0x49d 0x0d 0x09
0x49e 0x03 0xaf
Stopping dump. Other errors might exist.

Error: The systems running on the target and loaded into the target server memory are different.
Either wrong core file is selected on the host or text section is corrupted on target side.
Error during target server core initialization
Target Server will exit
__________________
cout << "Hello, robotics. Goodbye, world." << endl;

"The two-axis accelerometer provided in the kit of parts (shown in the picture below) is a two-axis accelerometer." - WPILib User's Guide
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2010, 21:52
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: Code not loading properly

Did you re-image the cRiO after installing the LabVIEW update?
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2010, 21:54
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Code not loading properly

Ya know, we had the EXACT same problem with our cRIO....


What fixed it for us was installing all the updates...but...my idea here is your IP Address/Team Number...


Because ours is 1771, it was 10.17.71.2 (for the cRIO)

I thought if you only had a 3 digit number, you put a 0 in first?

So, 10.08.40.6?

That may work, I don't know. :/

PS- Does the classmate show robot connectivity, just not code?
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2010, 22:28
Al3+'s Avatar
Al3+ Al3+ is offline
ARTist
AKA: Anthony
FRC #0840 (Aragon Robotics Team)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: San Mateo, CA
Posts: 58
Al3+ is a jewel in the roughAl3+ is a jewel in the roughAl3+ is a jewel in the rough
Re: Code not loading properly

Yeah, I did re-image the cRIO, but I'll try doing it again tomorrow if I can't think of anything else. And yes, there is robot communication, just no code.

I guess I'll double check the updates. Does the Driver Station update ( http://joule.ni.com/nidu/cds/view/p/lang/en/id/1535 ) need to be installed on the computer with Workbench?

(By the way, the Classmate has LabVIEW and Java preloaded but not Workbench. Is that how it's supposed to be?)
__________________
cout << "Hello, robotics. Goodbye, world." << endl;

"The two-axis accelerometer provided in the kit of parts (shown in the picture below) is a two-axis accelerometer." - WPILib User's Guide

Last edited by Al3+ : 13-01-2010 at 22:32.
Reply With Quote
  #5   Spotlight this post!  
Unread 14-01-2010, 09:46
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Code not loading properly

After we re-imaged our classmate, we had to do a reboot of both classmate and cRio. Make sure that the version string is like c-2010-v19 on your classmate.

Don't forget to recompile your code after updating WindRiver. We struggled for half an hour or so because we forgot to recompile our code to use the LabView mandatory update, so we were uploading v5 code to our v19 cRio.

Another useful thing is to plug a serial cable into the cRio to get its text output. Oftentimes you can take the error text it spits out and search for it on CD to get the solution.
Reply With Quote
  #6   Spotlight this post!  
Unread 14-01-2010, 15:17
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Code not loading properly

How are you "deploying"? First>Download? if so, make sure the settings are correct. Go to Window>Preferences and make sure you set the team # and build file in the First Downloader section
If you are using the remote system, you don't need to reboot.

EDIT: make sure you select the OS image when remote system connecting
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib

Last edited by byteit101 : 14-01-2010 at 15:19.
Reply With Quote
  #7   Spotlight this post!  
Unread 14-01-2010, 19:38
Al3+'s Avatar
Al3+ Al3+ is offline
ARTist
AKA: Anthony
FRC #0840 (Aragon Robotics Team)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: San Mateo, CA
Posts: 58
Al3+ is a jewel in the roughAl3+ is a jewel in the roughAl3+ is a jewel in the rough
Re: Code not loading properly

So it turns out that the cRIO wasn't up to date after all. Re-imaging from v5 to v19 fixed the problems.
__________________
cout << "Hello, robotics. Goodbye, world." << endl;

"The two-axis accelerometer provided in the kit of parts (shown in the picture below) is a two-axis accelerometer." - WPILib User's Guide
Reply With Quote
  #8   Spotlight this post!  
Unread 14-01-2010, 22:08
woodk woodk is offline
Registered User
FRC #2809
 
Join Date: Jan 2009
Location: Kingston, Ontario, Canada
Posts: 31
woodk has a spectacular aura aboutwoodk has a spectacular aura aboutwoodk has a spectacular aura about
Re: Code not loading properly

I also had to re-image the cRIO a couple of times before it worked. In the end it was because I had a virus checker running and it caused the re-imaging to timeout.

- Kevin
Reply With Quote
  #9   Spotlight this post!  
Unread 14-01-2010, 22:55
RKElectricalman's Avatar
RKElectricalman RKElectricalman is offline
Meezy the Mentor
AKA: Rameez
FRC #0384 (Sparky 384)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Richmond, Va
Posts: 88
RKElectricalman is just really niceRKElectricalman is just really niceRKElectricalman is just really niceRKElectricalman is just really nice
Send a message via AIM to RKElectricalman
Re: Code not loading properly

I was actually having the same issue, but even after doing all the updates I'm still having this issue!

I'm using Windriver to upload code, and everything seems to deploy properly but doesn't work... Any suggestions?

Any help would be appreciated,.. I always have to spend 3 weeks fixing programming issues for my kids, and I just want them to have the maximum time developing software for once.

-Meezy
__________________
ahhh Division Finalists!!
Reply With Quote
  #10   Spotlight this post!  
Unread 14-01-2010, 23:22
Boydean's Avatar
Boydean Boydean is offline
The Blue Alliance
no team
Team Role: Alumni
 
Join Date: Apr 2007
Rookie Year: 2003
Location: SC
Posts: 319
Boydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant future
Send a message via AIM to Boydean
Re: Code not loading properly

Quote:
I was actually having the same issue, but even after doing all the updates I'm still having this issue!

I'm using Windriver to upload code, and everything seems to deploy properly but doesn't work... Any suggestions?

Any help would be appreciated,.. I always have to spend 3 weeks fixing programming issues for my kids, and I just want them to have the maximum time developing software for once.

-Meezy
We are also having this same problem, but with labview. I have been working on it for the past two days and I got nothing. Any suggestions would be greatly appreciated.

(the chassis team keeps coming to me saying "well...we want to drive it over the bump some time.")
__________________
Reply With Quote
  #11   Spotlight this post!  
Unread 15-01-2010, 03:02
ranc ranc is offline
Registered User
FRC #2489
 
Join Date: Feb 2009
Location: Fremont
Posts: 15
ranc is an unknown quantity at this point
Re: Code not loading properly

After updating, did you reimage the CRio to v19 over a wired connection?
I had the same issue, but reimaging did the trick.
Apparently, the error code comes from Windriver and the CRio having different versions.
Reply With Quote
  #12   Spotlight this post!  
Unread 15-01-2010, 11:06
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 591
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Code not loading properly

Quote:
Originally Posted by RKElectricalman View Post
I was actually having the same issue, but even after doing all the updates I'm still having this issue!

I'm using Windriver to upload code, and everything seems to deploy properly but doesn't work... Any suggestions?

-Meezy
Are you using the FIRST/Downloader or the run/debug options to load code into the robot?
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #13   Spotlight this post!  
Unread 15-01-2010, 16:32
RKElectricalman's Avatar
RKElectricalman RKElectricalman is offline
Meezy the Mentor
AKA: Rameez
FRC #0384 (Sparky 384)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Richmond, Va
Posts: 88
RKElectricalman is just really niceRKElectricalman is just really niceRKElectricalman is just really niceRKElectricalman is just really nice
Send a message via AIM to RKElectricalman
Re: Code not loading properly

Yes, we're using the First/Download option in Windriver, and it's not giving me any errors at all... We've done all the updates, and it says it's going through properly, but everytime we hook up the robot to the driver station (last years, and this years) we get a "no code" displayed.

We're using our own development laptop to load the code onto the robot, and we're hooking the ethernet cable straight to the cRIO port one. Is this correct?

Currently, we're installing a fresh copy of all the programs onto another laptop to see if that would help, since the current computer had last years software on it too. It's worth a shot I guess... any suggestions?

-Meezy

*edit* A fresh install did the trick. If you installed the software on a computer that you used last year, completely uninstall it first and then do all the updates + reimaging... works like a charm. Thanks everyone!
__________________
ahhh Division Finalists!!

Last edited by RKElectricalman : 15-01-2010 at 20:51. Reason: Got it to work!!!
Reply With Quote
  #14   Spotlight this post!  
Unread 21-01-2010, 08:47
BigJ BigJ is offline
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 947
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Code not loading properly

Team 1675 is currently having this same problem (error on trying to connect remote system and "No Robot Code" shown on driver station). We have been trying from a laptop we got this year, so all the installs are fresh.

We have used FTP to confirm that our code is actually getting into the cRIO when we deploy, so that is good.

We have tried deploying/remote system from multiple laptops so it wasn't a problem with our laptop.

We have reimaged using v19 probably 5 or 6 times.

I will try completely uninstalling and reinstalling all the development software tonight. Hopefully it will work then.

2 weeks of cRIO problems makes me a sad panda.
Reply With Quote
  #15   Spotlight this post!  
Unread 21-01-2010, 11:41
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Code not loading properly

Are you sure you have all updates?
and more importantly
Are you sure the WR update is installing successfully?

http://first.wpi.edu/FRC/frccupdates.html
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
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
Laptop is not finding the cRIO properly? Studentish Electrical 4 07-05-2009 12:03
1 joystick controls not turning properly andrew_4_life Programming 4 28-03-2008 01:22
CMU Cam not Tracking Properly on Robot coastertux Programming 6 29-01-2006 00:02
Pictures not loading sanddrag CD Forum Support 32 11-10-2002 01:55


All times are GMT -5. The time now is 03:28.

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