Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
petit-miner opened this issue Jun 24, 2016 · 4 comments
Open

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

petit-miner opened this issue Jun 24, 2016 · 4 comments

Comments

@petit-miner
Copy link

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

@JadinAndrews
Copy link

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

@Papamaker
Copy link

Papamaker commented Aug 28, 2016

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
Copy link

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?

@thseiler
Copy link
Owner

thseiler commented Apr 2, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants