With the Microchip compilers you can choose the linkerfile(s) you need manually.
Now I have to edit the file everytime, annoying and prone to errors...
Also it's difficult to assign fixed location constants to program memory for use with bootloader.
If I use this code, the compiler strips out the value because it's never used: (It IS used, but in the bootloaded firmware)
Code: Select all
Const MyVar As Word[1] = (0x1234) Org 0x800
Code: Select all
<ROM>
<MIN_ADDR>0x000</MIN_ADDR>
<MAX_ADDR>0x7FF</MAX_ADDR>
</ROM>
<ROM>
<MIN_ADDR>0x802</MIN_ADDR>
<MAX_ADDR>0x2abf7</MAX_ADDR>
</ROM>