Skip to main content
pavel239955_st
Associate
July 5, 2016
Question

STM32L4xx-Flash: erased flag?

  • July 5, 2016
  • 2 replies
  • 601 views
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
This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
July 5, 2016
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 VenmoUp vote any posts that you find helpful, it shows what's working..
pavel239955_st
Associate
July 5, 2016
Posted on July 05, 2016 at 11:01

Thank you very much!