Go to Post And then the judges joined in and did the wave! - Basel A [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 15-01-2012, 14:33
aeniug2's Avatar
aeniug2 aeniug2 is offline
Registered User
AKA: Joseph
FRC #2879 ("Orange Thunder")
Team Role: Mentor
 
Join Date: Apr 2010
Rookie Year: 2010
Location: St. Louis park
Posts: 150
aeniug2 will become famous soon enoughaeniug2 will become famous soon enough
Windriver wont communicate with cRIO

My team recently switched to using C++. We understand C++ itself just fine, but we seem to be having terrible luck trying to set up WindRiver.

Whenever we try to set up communications between WindRiver and the cRIO, it appears as though it is working for a little while, and then we get this:


(sorry if the image is a tad big, I'm kinda new to this)


We have tried reinstalling WindRiver several times, we have tried fixing the error by doing what it says to (which is very complicated, and doesn't work)

Has anyone else seen this error before, or know how to fix it/what might be causing it?
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2012, 19:43
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: Windriver wont communicate with cRIO

Is your cRIO properly reformatted with the v43 image for C++ and configured for your team number (2879)? Is there a firewall blocking communication on the required port?
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2012, 19:54
aeniug2's Avatar
aeniug2 aeniug2 is offline
Registered User
AKA: Joseph
FRC #2879 ("Orange Thunder")
Team Role: Mentor
 
Join Date: Apr 2010
Rookie Year: 2010
Location: St. Louis park
Posts: 150
aeniug2 will become famous soon enoughaeniug2 will become famous soon enough
Re: Windriver wont communicate with cRIO

I made sure to allow everything through the firewall, and I thought we had Reimaged it correctly

But, just to be sure I tired re-imageing it again (just now, like, 30 seconds before your post appeared...)

I tried windriver again, and lo and behold it gives me an entirely new error:


any ideas?
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2012, 19:59
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Windriver wont communicate with cRIO

Quote:
Originally Posted by aeniug2 View Post
I made sure to allow everything through the firewall, and I thought we had Reimaged it correctly

But, just to be sure I tired re-imageing it again (just now, like, 30 seconds before your post appeared...)

I tried windriver again, and lo and behold it gives me an entirely new error:


any ideas?
That one I know. From the C++ Getting Started Guide (when you are on New Connection page in Wind River where you set the IP and kernel image):
Finally, click the “Select” button near the top right corner of the window. Click the “+” next to “MPC5xxx” to expand the choices. Select “MPC52xx” the click OK. Click “Finish” to create the connection.
Reply With Quote
  #5   Spotlight this post!  
Unread 15-01-2012, 20:04
aeniug2's Avatar
aeniug2 aeniug2 is offline
Registered User
AKA: Joseph
FRC #2879 ("Orange Thunder")
Team Role: Mentor
 
Join Date: Apr 2010
Rookie Year: 2010
Location: St. Louis park
Posts: 150
aeniug2 will become famous soon enoughaeniug2 will become famous soon enough
Re: Windriver wont communicate with cRIO

OHHHHH MAI GHAWD!!! THANKS!!!

That fixes the connection... which should also fix the debugging and the deploying... (although, ye can never be too sure...)

Once again, THANKS!!!

now I can test all the code I wrote to occupy myself while I was waiting for help with this...
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 15-01-2012, 20:16
aeniug2's Avatar
aeniug2 aeniug2 is offline
Registered User
AKA: Joseph
FRC #2879 ("Orange Thunder")
Team Role: Mentor
 
Join Date: Apr 2010
Rookie Year: 2010
Location: St. Louis park
Posts: 150
aeniug2 will become famous soon enoughaeniug2 will become famous soon enough
Re: Windriver wont communicate with cRIO

Ok... so...
Your suggestion DID fix the communications with the cRIO...
And when I run debug, I just get a "warning" about something insignificant.
But when I deployed the code, and tried out the DS, it says no robot code.

I read that I am supposed to deploy the .OUT file, but I couldn't find it in the folder that it builds to, so I assumed I should just try to use the MakeFile
(Ima guess that that is the wrong file to use)

where should I look to find the .OUT file?

EDIT: Never mind. I figured it out.
__________________

Last edited by aeniug2 : 15-01-2012 at 22:58.
Reply With Quote
  #7   Spotlight this post!  
Unread 18-01-2012, 01:35
emusteve's Avatar
emusteve emusteve is offline
Registered User
AKA: Steve Martin
#0470 (Alpha Omega)
 
Join Date: Jan 2004
Location: Ypsilanti
Posts: 66
emusteve is just really niceemusteve is just really niceemusteve is just really niceemusteve is just really nice
Re: Windriver wont communicate with cRIO

What did you figure out. We're dying to know, as the only thing we're seeing is a Make file as well. How did you get a .out file? (or where did you find it?)
Reply With Quote
  #8   Spotlight this post!  
Unread 18-01-2012, 09:08
aeniug2's Avatar
aeniug2 aeniug2 is offline
Registered User
AKA: Joseph
FRC #2879 ("Orange Thunder")
Team Role: Mentor
 
Join Date: Apr 2010
Rookie Year: 2010
Location: St. Louis park
Posts: 150
aeniug2 will become famous soon enoughaeniug2 will become famous soon enough
Re: Windriver wont communicate with cRIO

Well... You head on over to the folder that has the Make file (names PNGGU8227 or something, you know what I mean...) Then there should be a folder named simpletemplate, then one named debug, just keep going that direction until you find "simpletemplate.out" (It will be named this no matter what your project is named).

Sorry if this isn't detailed enough, I'm kinda almost late for school, and my laptop took awhile to boot..

If you need a more detailed explanation, I'll be online again later in the day, or perhaps some of the other people on CD will help you out.

Hope this helped!
__________________
Reply With Quote
  #9   Spotlight this post!  
Unread 18-01-2012, 14:50
emusteve's Avatar
emusteve emusteve is offline
Registered User
AKA: Steve Martin
#0470 (Alpha Omega)
 
Join Date: Jan 2004
Location: Ypsilanti
Posts: 66
emusteve is just really niceemusteve is just really niceemusteve is just really niceemusteve is just really nice
Re: Windriver wont communicate with cRIO

>sigh<
Alas, no additional folder in with the make file. Our guess is that for some reason, the build never really completes. We can see the target, so don't really know what's going on. Guess we'll just have to hope we can contact Brad Miller to see if he has any advice. Very frustrating to be this far into the build with nothing to program with!

Thanks,
Steve
Reply With Quote
  #10   Spotlight this post!  
Unread 18-01-2012, 16:57
aeniug2's Avatar
aeniug2 aeniug2 is offline
Registered User
AKA: Joseph
FRC #2879 ("Orange Thunder")
Team Role: Mentor
 
Join Date: Apr 2010
Rookie Year: 2010
Location: St. Louis park
Posts: 150
aeniug2 will become famous soon enoughaeniug2 will become famous soon enough
Re: Windriver wont communicate with cRIO

Hmm...I know what you mean about not being able to program anything... It kinda sucks.

Anyways, here is the exact path that I found our .OUT file under:

C:\WindRiver\Workspace\[project name]\PPC603gnu\SimpleTemplate\Debug\Simpletemplate.out



In terms of it not building fully, does it show any errors? or does it appear to have built successfully?
__________________
Reply With Quote
  #11   Spotlight this post!  
Unread 19-01-2012, 19:23
emusteve's Avatar
emusteve emusteve is offline
Registered User
AKA: Steve Martin
#0470 (Alpha Omega)
 
Join Date: Jan 2004
Location: Ypsilanti
Posts: 66
emusteve is just really niceemusteve is just really niceemusteve is just really niceemusteve is just really nice
Re: Windriver wont communicate with cRIO

Finally got one of the other machines to create a .out file, and tried to run that. Now I have another weird situation. Driver's station reports communication and code running, but nothing happens. I can see the battery voltage, but no PWM output. Tried running NetConsole and got the following output. Also tried putting in a printf, but got no output. So, I tried building the "Hello World" example program, and THAT doesn't even work!

Sooo tired of this!!
Attached Thumbnails
Click image for larger version

Name:	NetCons_1_19.jpg
Views:	13
Size:	240.9 KB
ID:	11459  
Reply With Quote
  #12   Spotlight this post!  
Unread 19-01-2012, 19:32
aeniug2's Avatar
aeniug2 aeniug2 is offline
Registered User
AKA: Joseph
FRC #2879 ("Orange Thunder")
Team Role: Mentor
 
Join Date: Apr 2010
Rookie Year: 2010
Location: St. Louis park
Posts: 150
aeniug2 will become famous soon enoughaeniug2 will become famous soon enough
Re: Windriver wont communicate with cRIO

Wow... thats a tad odd... never seen anything like it, but then again I've only been using C++ for about 3 weeks now...

So... it builds without errors... but it doesn't do anything when its running on the robot? hmm...

Just gonna list a few simple things I've read about:
- Make sure you Undeploy the old code before deploying the new code...derp...
- When you formatted your cRIO, did it say all the modules were in the right spots?
- do you get errors in diagnostics area of the driver station at all? because I have had code that built fine, but still had "errors"

if it would help at all I could send ya my robot code (I doubt it would help, but I might as well offer, ya never know)
__________________
Reply With Quote
  #13   Spotlight this post!  
Unread 19-01-2012, 19:47
emusteve's Avatar
emusteve emusteve is offline
Registered User
AKA: Steve Martin
#0470 (Alpha Omega)
 
Join Date: Jan 2004
Location: Ypsilanti
Posts: 66
emusteve is just really niceemusteve is just really niceemusteve is just really niceemusteve is just really nice
Re: Windriver wont communicate with cRIO

Image deploys without a problem, Netconsole obviously is running fine, cRIO boots without reporting any errors.
We had tried running as deployed code, but same result. Undeploy and run in memory, we get this. Re-imaged to be sure NOTHING was resident, and tried running in memory. That's when I took the screen shot. Driver's station doesn't report any errors, says code is running, and reports battery voltage. That's all I get from it. (I did try enabling in both teleop and autonomous modes.)
Reply With Quote
  #14   Spotlight this post!  
Unread 19-01-2012, 19:51
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Windriver wont communicate with cRIO

Do you have a Digital Module present in slot 2? If so I would try re-imaging your cRIO.
Reply With Quote
  #15   Spotlight this post!  
Unread 19-01-2012, 20:21
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
Question Re: Windriver wont communicate with cRIO

Quote:
Originally Posted by emusteve View Post
Finally got one of the other machines to create a .out file, and tried to run that. Now I have another weird situation. Driver's station reports communication and code running, but nothing happens. I can see the battery voltage, but no PWM output. Tried running NetConsole and got the following output. Also tried putting in a printf, but got no output. So, I tried building the "Hello World" example program, and THAT doesn't even work!

Sooo tired of this!!
Just an obvious question: Are you hitting enable?
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 03:06.

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