Go to Post Rules can be rewritten, problems can be fixed, but peoples' feelings are far from inanimate - they need more consideration than just being "corrected". - Eugenia Gabrielov [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-02-2010, 08:40
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Trouble flashing cRIO

Quote:
Originally Posted by sp33chy View Post
I've been trying for the past hour or so, following the directions of different people when others' didn't work, but every time the cRIO keeps giving me this error when I try to flash it, sometimes the IP changes but the error is the same.

http://i47.tinypic.com/213lyf6.png

The cRIO is connected with a regular ethernet cable. Any tips for me to get this to get working? Thanks.
I know this thread began over 2 weeks ago and the OP may no longer be having this particular problem.

However, I've just gone through the re-imaging process several times and I see why so many people have been having trouble with it.

You should not direct connect (crossover cable or not) your PC to the cRio when re-imaging.
Use cable instead of wireless, but use a switch or hub between the cRio and the PC.
The reason is the cRio is rebooted several times during the imaging process.
Each time the cRio reboots, it has the potential to disrupt link status on your PC LAN connection.
The time it takes your PC to recover from the lost link status, and the extent to which that makes your PC unable to communicate with the cRio is more or less -- depending on your machine.

In my case, this morning, my laptop would not successfully image the cRio with a direct cable connection. After putting a switch in between, it worked first time. The switch prevents my wired port from losing link status when the cRio boots and that made all the difference.
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)
  #2   Spotlight this post!  
Unread 15-02-2010, 10:49
oddjob oddjob is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Earth
Posts: 118
oddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to behold
Re: Trouble flashing cRIO

Our team also had a very difficult time reimaging the cRIO. The strategy that worked for us was to set the cRIO into Safe mode, cycle power, reformat using the Image app, exit Safe mode, cycle power, then Image it fully to v19 C++. That worked from the Classmate, on which we installed the complete suite of FRC software. We also have a laptop and it didn't work from that at all, so that needs all the FRC software uninstalled and reinstalled.

Note - disable Windows Firewall and UAC. Both have the potential to silently interfere with the software installation and Imaging process so it might fail and you aren't sure why.
  #3   Spotlight this post!  
Unread 15-02-2010, 11:13
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Trouble flashing cRIO

Quote:
Originally Posted by oddjob View Post
Our team also had a very difficult time reimaging the cRIO. The strategy that worked for us was to set the cRIO into Safe mode, cycle power, reformat using the Image app, exit Safe mode, cycle power, then Image it fully to v19 C++. That worked from the Classmate, on which we installed the complete suite of FRC software. We also have a laptop and it didn't work from that at all, so that needs all the FRC software uninstalled and reinstalled.
You should not have had to try all those things.
By breaking down the individual steps of the process, you alter the timing of steps and you can certainly arrive at an accidental success.
I noted no fewer than 4, and maybe up to 6, reboots of the cRio while trying to image it.
Each time (when direct cable connected) my laptop noted the link loss and went into fairly lengthy recovery.
Ethernet hubs are very cheap and I'd hazard a guess that most teams have a couple of them that they haven't even used in quite a while.
I'm convinced that using a hub or switch between any PC and the cRio will eliminate all the try this (I call it voodoo because you might as well sacrifice a chicken too while you're at it) and try that.


Quote:
Note - disable Windows Firewall and UAC. Both have the potential to silently interfere with the software installation and Imaging process so it might fail and you aren't sure why.
That is good advice.

EDIT: I do not endorse sacrificing chickens, but I do like KFC original recipe.
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)

Last edited by gvarndell : 15-02-2010 at 11:19. Reason: animal cruelty disclaimer
  #4   Spotlight this post!  
Unread 15-02-2010, 11:28
Mr. Lim Mr. Lim is online now
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Trouble flashing cRIO

I second gvarndell's advice,

However I'll throw into the mix that the Classmate PC's LAN connector seems to play nice when link is lost and regained during a cRIO reboot. Your own laptop or desktop's mileage may vary. Our team exclusively re-images our cRIO using the Classmate PC via a direct crossover cable.

In another thread, I mentioned that our team has had issues relating to the supplied gaskets and/or debris causing intermittent communications problems with the cRIO.

We installed the cRIO gaskets included in this year's kit, and could no longer reflash our cRIO. We removed them, and we were able to reflash again. It was very bizarre, because our cRIO was otherwise clean inside. I suppose it shows foreign objects can influence communications quite a bit.

Given the nature of last years game and the amount of static electricity that was generated, it might be wise to do a little house cleaning on the inside of the cRIO by dusting them off with some compressed air.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
  #5   Spotlight this post!  
Unread 15-02-2010, 11:44
oddjob oddjob is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Earth
Posts: 118
oddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to behold
Re: Trouble flashing cRIO

Quote:
Originally Posted by gvarndell View Post
I'm convinced that using a hub or switch between any PC and the cRio will eliminate all the try this (I call it voodoo because you might as well sacrifice a chicken too while you're at it) and try that.

I do think you have highlighted a potential problem for those using a direct wired connection. I guess it depends on if the laptop ethernet is dropping connection and then is recovering quickly enough, so it would be a YMMV thing and some laptops would not have a problem, and some would. We've been using the same laptop and connection all along, until the cRIO started rufusing to accept a new Image.
  #6   Spotlight this post!  
Unread 22-02-2010, 11:04
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: Trouble flashing cRIO

Quote:
Originally Posted by gvarndell View Post
I know this thread began over 2 weeks ago and the OP may no longer be having this particular problem.

However, I've just gone through the re-imaging process several times and I see why so many people have been having trouble with it.

You should not direct connect (crossover cable or not) your PC to the cRio when re-imaging.
Use cable instead of wireless, but use a switch or hub between the cRio and the PC.
The reason is the cRio is rebooted several times during the imaging process.
Each time the cRio reboots, it has the potential to disrupt link status on your PC LAN connection.
The time it takes your PC to recover from the lost link status, and the extent to which that makes your PC unable to communicate with the cRio is more or less -- depending on your machine.

In my case, this morning, my laptop would not successfully image the cRio with a direct cable connection. After putting a switch in between, it worked first time. The switch prevents my wired port from losing link status when the cRio boots and that made all the difference.
gvarndell,

We have not had problems re-flashing the cRio until v20 of the image. Now, no matter what we try it will not re-flash (however, we have not tried the safe mode format yet). We have tried direct connection with multiple computers with both a normal and crossover cable and have also used the supplied N-router as a switch between the programming computer and cRio. Interestingly enough, the FRCLabVIEWUpdate2.1for2010.zip update does not seem to re-install itself and I can't find any place to uninstall it. None of the program files (shortcuts, exes, etc) are updated and if I delete the zipped image of the cRio down in the NI installation folder on the computer, it will not replace the deleted file (again suggesting it is not reinstalling). Also, it won't install the older version - FRCLabVIEWUpdate2.0for2010.zip - either. I can't get the v19 image back.

- Bryce

P.S. Really, NI? You don't allow for REINSTALLATION!? The only solution I can see at this point is to completely uninstall and re-install LabView and then the updates. That's if formatting in safe mode won't work.
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #7   Spotlight this post!  
Unread 22-02-2010, 11:29
simpsonboy77 simpsonboy77 is offline
Registered User
AKA: Garrett Dicken
FRC #0041 (RoboWarriors)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New Jersey
Posts: 88
simpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond repute
Re: Trouble flashing cRIO

Bryscus,

I too had problems reflashing v20. I kept getting the "check your subnet error". My team had the luxury of having 2 cRios, so I loaded v20 on the 2009 cRio, and it took the first time. If you use wireshark or another network protocol analyzer and only see UDP packets then it will fail. The actual transfer seemed like FTP. After verifying that that one accepted and worked, I did the following the stubborn one.

I turned the cRio off. I then switched it to safe mode. You can't image in safe mode, but you can reformat it. So I reformatted it, and once it completed I powered it down. Switch it back to normal mode, then power it up. I then reimaged it normally. I'm not sure, but it might be worth noting that the time after the reformat I forgot to set a team number, so it was on 0. I don't think it matters but it is exactly what I did. I then reimaged it with the correct team number.

Before you do these steps remember, if the cRio doesn't take the image after the reformat then it will not run your code. If possible have a computer read the console output, sometimes you find a really helpful clue.
__________________
2017 Shenzhen, China Regional CSA
2013 - Present MAR Control System Adviser and FTAA
2009 - Present Programming an Electrical Mentor Team 41
2007 - 2008 Team 41 Lead Programmer, Electrical
2005 - 2008 Team 41 Member
2008 NYC Regional Winner
  #8   Spotlight this post!  
Unread 22-02-2010, 12:05
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: Trouble flashing cRIO

Quote:
Originally Posted by simpsonboy77 View Post
Bryscus,

I too had problems reflashing v20. I kept getting the "check your subnet error". My team had the luxury of having 2 cRios, so I loaded v20 on the 2009 cRio, and it took the first time. If you use wireshark or another network protocol analyzer and only see UDP packets then it will fail. The actual transfer seemed like FTP. After verifying that that one accepted and worked, I did the following the stubborn one.

I turned the cRio off. I then switched it to safe mode. You can't image in safe mode, but you can reformat it. So I reformatted it, and once it completed I powered it down. Switch it back to normal mode, then power it up. I then reimaged it normally. I'm not sure, but it might be worth noting that the time after the reformat I forgot to set a team number, so it was on 0. I don't think it matters but it is exactly what I did. I then reimaged it with the correct team number.

Before you do these steps remember, if the cRio doesn't take the image after the reformat then it will not run your code. If possible have a computer read the console output, sometimes you find a really helpful clue.
simpsonboy77,

I appreciate your quick response. Are you, by any chance, using CAN this year? Another team member of mine just emailed another post. http://www.chiefdelphi.com/forums/sh...light=cRio+v20 post #5. It appears that either CAN plugin, 2CAN or BlackJag will cause the cRio to not be able to flash correctly. I will try re-flashing with the reference to the BlackJagPlugin removed and see if that works, and then try your method if it does not. Again, thanks for the help. I'll try to repost with the solution (assuming we end up with one).

- Bryce

P.S. The plugin would make sense because we have not re-flashed since adding the plugin reference.
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
Closed Thread


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
Flashing cRIO flyvin Programming 3 27-01-2010 08:19
Trouble connecting to cRIO? darty Programming 17 31-01-2009 16:15
Trouble Downloading from LabView to cRio MikePres FRC Control System 0 15-01-2009 16:17
Inventor software trouble/ FIRST Base trouble nasa-senpai General Forum 2 24-01-2007 09:15
flashing LEDs jacob_dilles Electrical 1 22-02-2004 21:52


All times are GMT -5. The time now is 14: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