embedded icon indicating copy to clipboard operation
embedded copied to clipboard

avrdude: ERROR: address 0x8010 out of range at line 129

Open petit-miner opened this issue 9 years ago • 4 comments

Hey, I have a problem flashing the .hex file to the other Arduino Uno. Every time I try to flash the .hex file I get this error: avrdude: ERROR: address 0x8010 out of range at line 129 of /home/marcel/Downloads/.arduino-1.6.5-r5/hardware/arduino/avr/bootloaders/atmega/2boots-arduino-atmega328p-16000000L-PD4.hex avrdude: read from file '/home/marcel/Downloads/.arduino-1.6.5-r5/hardware/arduino/avr/bootloaders/atmega/2boots-arduino-atmega328p-16000000L-PD4.hex' failed I dont know why this happen. Can someone please help me? Thanks

petit-miner avatar Jun 24 '16 13:06 petit-miner

Probably the binary is too big. Check the size with avr-size *.hex

JadinAndrews avatar Jul 29 '16 07:07 JadinAndrews

Hi there,

I also have the same issue, even if I didn't change anything in the code, but just compile it as it is...

thanks

Papamaker avatar Aug 28 '16 14:08 Papamaker

The bootloader that is produced is now bigger than 2k since the commit of afranchuck (to make it compatible with the current gcc)... So is it because of the new gcc that is less optimized, or is there another reason for this?

Papamaker avatar Aug 28 '16 15:08 Papamaker

Hi and sorry for the late reply,

newer avr-gcc versions do no longer support the intermodule optimisation framework (-combine) and will produce a larger binary, which no longer fits into the 2k limit.

Try using an older avr-gcc version < 4.6, and it should work.

thseiler avatar Apr 02 '17 21:04 thseiler