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?
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
<pedant> Strictly, no; because the Compiler doesn't place anything anywhere - it is the Linker's job. </pedant>