This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using a Page in external Flash for ONE Module

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?

Parents
  • 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

Reply
  • 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

Children