2015-09-28 02:53 PM
Hi all,
I am using STM32F030R8 MCU with STM HAL libraries. My application is running from Flash and I would like to use last page of the Flash to store some parameters. At some point the application will erase that last page and reprogram it with the new params. Is it possible to have erasing/reprogramming code running from Flash (of course it will run from page different than the one being programmed) or does this code have to be moved to RAM? Any examples appreciated.Best regards,Adam #stm32f0-flash2015-09-28 03:21 PM
I believe there are IAP SPL based examples, you could review those.
Like other STM32 parts you can execute from FLASH, and have it erase/write, in this context it stalls (inserts wait states) access to the array. If this causes unacceptable delays, then you'd need to run code from RAM and not touch the array.http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1574/LN1826/PF258964
Select ''Design Resource'' tab, search on ''IAP''