I'm using GCC with AVR Studio 4 and the ATmega 324P.
I'm trying to force code to a location in high memory. Within my code, I declare the prototype as:
void foo() __attribute__ ((section ".mysection")));
Then as an added linker option I use:
However when I look at the disassembly while debugging, the program memory at this location is all FFFF.
What could I be doing wrong? I have several other sections in memory that code seems to work fine in.
Thanks for any help.