Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Strange download errors (http://www.chiefdelphi.com/forums/showthread.php?t=73925)

gamemonk0 08-02-2009 16:21

Strange download errors
 
When we attempt to download to the cRio through the driver station, we get an error that tells us to check the details. The details tell us that there is an IO error in downloading the code. I am trying to download the simpleTemplate that came with the WPILib, by the way. It builds without a hitch, but I cannot download it.

I have flashed and rebooted the system more times than we can count, as well as changed the battery and ensured that I am connected.

I have also tried connecting directly from my machine to the cRio with a crossover cable. Still, I get the same error. It appears almost instantaneously, also. Nothing appears in the console. Just that inexplicable error.

Has anyone else encountered this, or can help me know what's failing on me?

elstaqub 08-02-2009 18:20

Re: Strange download errors
 
I'm not sure, but I think I saw this happen today when a teammate tried to download a non-existent .out file. Make sure your download filename is right.

When you figure out your problem - please post!

kyungjin 09-02-2009 06:55

Re: Strange download errors
 
Make sure your FIRST downloader preferences are correct. You might have switched projects or deleted the file or something...

Assuming your .out file builds fine...

Go to Window->Preferences...

Go to FIRST Downloader Preferences and input your team number and navigate to your <Project Name>.out file. It should be somewhere in workspace/<Project Folder>/PPC603/Debug (or something of that sort)...

Either way, look for it in the project folder... Press OK and try again when you get comms...

Ken Streeter 09-02-2009 07:52

Re: Strange download errors
 
Quote:

Originally Posted by gamemonk0 (Post 816647)
When we attempt to download to the cRio through the driver station, we get an error that tells us to check the details. The details tell us that there is an IO error in downloading the code. I am trying to download the simpleTemplate that came with the WPILib, by the way. It builds without a hitch, but I cannot download it.

The most likely problems are either (1) lack of network connectivity to the cRIO or (2) incorrect setting of the FIRST Downloader preferences in Wind River Workbench or (3) no compiled executable.

I would suggest investigating each of these as follows:

(1) Verify network connectivity to the cRIO. This is most easily done by trying to "ping" the cRIO from your PC. To do this, start up a command prompt on Windows, and enter "ping 10.1.51.2" You should get a series of four successful responses indicating "Reply from 10.1.51.2..." If you instead get a series of four "Request timed out." responses, your problem is with network connectivity to the cRIO.

(2) Check the settings of the FIRST Downloader preferences in Wind River Workbench. For information on how to do this, see the "Deploying the C/C++ Program" section of the "C Programming Guide for FRC" (This is on page 26 as of revision 0.75 of this document)

(3) It may be the case that your code didn't compile and that you have no executable file to download. Look to see if the file specified for use in the FIRST Downloader actually exists.

Please let us know if you manage to get past this, and, if so, what the problem was! If none of the above work, post that, too; maybe others will have additional suggestions.

gamemonk0 30-01-2010 14:09

Re: Strange download errors
 
Quote:

Originally Posted by Ken Streeter (Post 817118)
The most likely problems are either (1) lack of network connectivity to the cRIO or (2) incorrect setting of the FIRST Downloader preferences in Wind River Workbench or (3) no compiled executable.

I would suggest investigating each of these as follows:

(1) Verify network connectivity to the cRIO. This is most easily done by trying to "ping" the cRIO from your PC. To do this, start up a command prompt on Windows, and enter "ping 10.1.51.2" You should get a series of four successful responses indicating "Reply from 10.1.51.2..." If you instead get a series of four "Request timed out." responses, your problem is with network connectivity to the cRIO.

(2) Check the settings of the FIRST Downloader preferences in Wind River Workbench. For information on how to do this, see the "Deploying the C/C++ Program" section of the "C Programming Guide for FRC" (This is on page 26 as of revision 0.75 of this document)

(3) It may be the case that your code didn't compile and that you have no executable file to download. Look to see if the file specified for use in the FIRST Downloader actually exists.

Please let us know if you manage to get past this, and, if so, what the problem was! If none of the above work, post that, too; maybe others will have additional suggestions.

It was the subnet mask that was the issue, I think. Once we changed the subnet mask, then everything started to work again. Thanks a lot.

gvarndell 30-01-2010 14:56

Re: Strange download errors
 
Following up on a thread started nearly a year ago... :rolleyes:

Quote:

Originally Posted by gamemonk0 (Post 909944)
It was the subnet mask that was the issue, I think. Once we changed the subnet mask, then everything started to work again. Thanks a lot.

Seriously though, thanks for following up. :]
Better late than never.
Too many dangling threads here.
Makes searching for solutions turn up way too many unresolved problems.


All times are GMT -5. The time now is 02:41.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi