Hi, i have a module that i want to place in exactly ONE Page of my external Flash.
I located it fix to an Adress using the SECTIONS statement of the Linker. But now i want to reserve the rest of the Page i placed it to. I mean i could do it manualle, look how long the module is and reserve the rest of the Page using the RESERVE statement. is there a smarter way to do it?
Use the RENAMECLASS compiler directive to give a unique name for the code in your module, e.g:
#pragma RENAMECLASS(FCODE=FLASHCODE)
You have already done this?
Use the SECSIZE linker directive to set the size of the FLASHCODE section equal to your flash page size, e.g:
SECSIZE(?PR?MODULENAME%FLASHCODE(4000H))
Use the SECTIONS linker directive to place the section to the correct flash page. You have already done this.
Sauli
Thanks!