can't open input file

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Sasha
 
Posts: 69
Joined: Wed Aug 15, 2007 8:29 am

can't open input file

Post by Sasha »

I installed drivers, WinAVR and tested avrdude, and it seams working OK.
After I downloaded "x0xb0x_full.hex" and placed into rooth of C disk and run from the BANNED prompt:

avrdude -c usbtiny -p m162 -U flash:w:x0xb0x_full.hex:i

I get this:

Code: Select all

C:\Documents and Settings\Sasa Djuric>avrdude -c usbtiny -p m162 -U flash:w:x0xb0x_full.hex:i
found 4 busses

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9404
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "x0xb0x_full.hex"
avrdude: can't open input file x0xb0x_full.hex: No such file or directory
avrdude: write to file 'x0xb0x_full.hex' failed

avrdude: safemode: Fuses OK

avrdude done.  Thank you.
What is the problem?
Is there anything else I need to do to upload x0xb0x firmware into blank atmega162 ?

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Post by mtbf0 »

either put the file in C:\Documents and Settings\Sasa Djuric or use

Code: Select all

avrdude -c usbtiny -p m162 -U flash:w:C:\x0xb0x_full.hex:i 
first solution is probably best. the avrdude docs say it will handle colons in the file name, but why push your luck? or you could cd to C:\ and enter the avrdude command as you did before, but you don't really want to be cluttering up the root diirectory of your drive.

Sasha
 
Posts: 69
Joined: Wed Aug 15, 2007 8:29 am

Post by Sasha »

I was happy as I saw progress barr filling, but on 90% I faild. Tried 2 times... same result. :(

Code: Select all

C:\Documents and Settings\Sasa Djuric>avrdude -c usbtiny -p m162 -U flash:w:x0xb
0x_full.hex:i
found 4 busses

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e9404
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "x0xb0x_full.hex"
avrdude: writing flash (16380 bytes):

Writing | #############################################      | 90% 39.89savrdude
: error: usbtiny_send: error sending control message: win error: The I/O operati
on has been aborted because of either a thread exit or an application request.
 (expected 128, got -116)

Sasha
 
Posts: 69
Joined: Wed Aug 15, 2007 8:29 am

Post by Sasha »

After failing with uploading "x0xb0x_full.hex" I tried another hex file "x0xb0x.hex" and it succeed! :D

Thanks for helping me out mtbf0. Do you know what was the problem seccond time?

Code: Select all


Writing | ################################################## | 100% 40.83s

avrdude: 15214 bytes of flash written
avrdude: verifying flash memory against x0xb0x.hex:
avrdude: load data flash data from input file x0xb0x.hex:
avrdude: input file x0xb0x.hex contains 15214 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 27.92s

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”