Skip to main content
carlesls2
Associate III
June 20, 2025
Question

All '0' in flash memory

  • June 20, 2025
  • 2 replies
  • 478 views

Hello I have a question.

The '0' s instead of 0xFFFFFFFF in the memory is something that really occurs on the flash memory or it is a value that appear because the stm32cubeide is not able to read all the position of the memory, or in other words, the IDE is unable to confirm that the memory is empty.

 

carlesls2_0-1750420977209.png

 

Thanks a lot. 

 

2 replies

Semer CHERNI
ST Employee
June 23, 2025

Hello @carlesls2 

First let me thank you for posting.

Could you please give more details about the scenario which led to this behavior.
And if possible can you share you binary file. You can send it via private message.

KR,
Semer.

carlesls2
carlesls2Author
Associate III
June 25, 2025

As I check the memory and the memory is being written on, I see that there are '0' on the upper parts of the memory. 

waclawek.jan
Super User
June 25, 2025

Which STM32?

'L0 and 'L1 have an unusual FLASH which is erased to all- zeros, instead of the usual all-ones.

JW

carlesls2
carlesls2Author
Associate III
June 26, 2025

stm32g051