Hi,
I wanted to update the firmware on my tvbgone. Im using a USBasp, on my Mac. When I went to upload the tvbgone.hex file to the attiny85. I got the response below. What I realized
was that the tvbgone.hex is 23kb and the Flash on the attiny is only 8k. I then went and used the Makefile to recompile it and then recompiled it again manually. Th hex file always comes out to 23k. What am I missing.
Thanks
avrdude -p attiny85 -P usb -c usbasp -B 1 -U flash:w:tvbgone.hex
avrdude: set SCK frequency to 750000 Hz
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e930b
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: set SCK frequency to 750000 Hz
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: reading input file "tvbgone.hex"
avrdude: input file tvbgone.hex auto detected as Intel Hex
avrdude: writing flash (8102 bytes):
Writing | #################### | 39% 1.94savrdude: error: usbasp_transmit: Result too large
avrdude: error: wrong count at writing ffffffff
avrdude: error: usbasp_transmit: Result too large
avrdude: error: wrong responds size
avrdude: error: usbasp_transmit: Result too large
avrdude: error: wrong responds size
"This error keeps repeating till I have to kill the processes."
Firmware Confusion
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Firmware Confusion
The .hex file is not an image of the flash. avrdude interprets the .hex file to determine what to write to the chip. So it's not unexpected for it to be larger than the available space on the chip. This line
tells you that it's only writing 8102 bytes, which is less than 8K (8192 bytes)
The problem is likely with your USBasp.
Code: Select all
avrdude: writing flash (8102 bytes):
The problem is likely with your USBasp.
Please be positive and constructive with your questions and comments.