Just tried using $LoaderSize in main program but it made no difference.
It's not the error that's the problem as the compiler still generates HEX and BIN files.
It's the fact that the compiler stores constants and other data from the main program
after the bootloader code. This makes the total size of the file bigger than can fit in to flash.
This makes sense (to me) as the compiler is not aware that code following $20000 is a bootloader
and treats it as part of the main program.
↧