- Tue Mar 08, 2011 2:32 pm
#122256
Okay, so I am playing around with the atmega8u2. I found out that the bootloader takes about half of the chip flash. So when I tried to load more code on it would not take unless it was less than 4K.
Then I had an epiphany. Is there a way to write the code such that both the bootloader and code share the same libraries on the chip? Then the new code would just reference the libs in the bootloader. Of course this limits the app code to using what was compiled in to the bootloader.
Has anyone thought about something like this? How would you tell the linker to not include libs that are in the boot space?
Then I had an epiphany. Is there a way to write the code such that both the bootloader and code share the same libraries on the chip? Then the new code would just reference the libs in the bootloader. Of course this limits the app code to using what was compiled in to the bootloader.
Has anyone thought about something like this? How would you tell the linker to not include libs that are in the boot space?