Open GoogleCodeExporter opened 9 years ago
Hi,
Got the same problem, I think I found why, this is because the text section
defined for the linker on the Makefile does not take into account the new size
and start program at 0x7e00 :
atmega328: LDSECTIONS = -Wl,--section-start=.text=0x7e00
-Wl,--section-start=.version=0x7ffe
may be it should be replaced by
atmega328: LDSECTIONS = -Wl,--section-start=.text=0x7c00
-Wl,--section-start=.version=0x7ffe
To work in both case, try this but in this case you need to pass BIGBOOT=1 to
the command line parameter and let the optiboot.c source code untouched
ifdef BIGBOOT
atmega328: LDSECTIONS = -Wl,--section-start=.text=0x7c00
-Wl,--section-start=.version=0x7ffe
else
atmega328: LDSECTIONS = -Wl,--section-start=.text=0x7e00
-Wl,--section-start=.version=0x7ffe
endif
I'm not sure, need to be tested, let me know ;-)
Original comment by ch.hall...@gmail.com
on 7 Aug 2014 at 9:11
Yes; currently BIGBOOT doesn't adjust the start addresses, and only works if
the part has a bigger boot section by default; it's more designed to go with
the other chip targets (644, 1280, etc.)
Original comment by wes...@gmail.com
on 14 Aug 2014 at 6:28
Original issue reported on code.google.com by
johnpatc...@googlemail.com
on 31 Jul 2014 at 12:08