cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4xx-Flash: erased flag?

pavel239955_st
Associate
Posted on July 05, 2016 at 10:41

Hi everybody!

I have a question regarding to the flash of STM32L4xx.

If i erase one flash page of the device and in the next step read out that flash page i receive always 0xFFs. Then i wtite i. e. 0xFFFFFFFFFFFFFFFF (double word) into any proper position in flash.

My question: how can i distinguish the erased value 0xFF from the written value 0xFF?

Are there any flag that marks a Flash cell as erased?

Thanks a lot!

#stm32l4xx-flash
2 REPLIES 2
Posted on July 05, 2016 at 10:48

You can't.

You could try writing it a second time, or remember in your code that you just erased it.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
pavel239955_st
Associate
Posted on July 05, 2016 at 11:01

Thank you very much!