cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F030 and in application Flash programming

adam239955_st
Associate II
Posted on September 28, 2015 at 23:53

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-flash
1 REPLY 1
Posted on September 29, 2015 at 00:21

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''

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..