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

Reserving ROM for emulated EEPROM

I'm using the STM3210E-EVAL board, which has a 512k FLASH part. I want to use the last 64k for emulated EEPROM. I'm using the example code from ST (AN2594).

Is there a way I can tell the compiler not to place code in this area? Would I just change the IROM1 Size from 0x80000 to 0x70000?

Parents
  • Hi Tomas,

    Yes, changing the IROM1 size should do it.
    The linker takes instructions either from command line options (for simple memory layouts) or from a scatter file (for maximum flexibility.) If you are using the target options dialog of uVision to define the memory map, uVision automatically generates a scatter file and feeds it to the linker.

    Regards,
    - mike

Reply
  • Hi Tomas,

    Yes, changing the IROM1 size should do it.
    The linker takes instructions either from command line options (for simple memory layouts) or from a scatter file (for maximum flexibility.) If you are using the target options dialog of uVision to define the memory map, uVision automatically generates a scatter file and feeds it to the linker.

    Regards,
    - mike

Children
No data