AnsweredAssumed Answered

Need advices for separating flash memory for STM32F0 and STM32F1

Question asked by thieu.toan on Oct 8, 2012
Latest reply on Oct 9, 2012 by thieu.toan
Dear friends.
In my project, I'm separating the flash memory for Eeprom emulation and application code but It's not working. Anyboy can help me my working is correct or not.

In my project, I do something below for STM32F05R 64K.

1) Don't use page 0 and page 8. Memory address from 0x08000000 to 0x08001FFF
2) Use page 9 and page 10 for eeprom emulation. Memory address from 0x08002000 to 0x08002800 
3) Application code will program from page 12 to 64 for application code. Memory address from  0x08003000 to 0x0800FFFF.

I using KEIL compiler. when i build the applicaiton code, i modified Start of IROM1 in "option for target" in Keil to 0x08003000 to start application code from this address.

I do the same for STM32F2 but it is not working. Anybody can give me advice about my job. 

If I use the eeprom emulation address in last two pages 63 and 64 of STM32F0 and application code start from page 0. Everything is ok.

Note: I don't use bootloader in my project.

Thanks and Best Regards,