cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F091CCT6 FLASH Write example code by using cubemx.

Ananthakrishnan v
Associate II

I am using STM32F091CCT6, i want to store a variable data into flash memory. That value does not change after power on reset. Any example code available for this application.

2 REPLIES 2
Imen.D
ST Employee

Hello,

Try the FLASH example with the CubeF0 firmware package and modify it depending on your needs: STM32Cube_FW_F0_V1.9.0\Projects\STM32F091RC-Nucleo\Examples\FLASH

Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Thanks for your reply. I did with this example and able to write into selected flash address but after power on reset the variable goes to initial value.