This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Microcontroller memory initialization

Hi,
I am using a cortex M0 microcontroller, after reset the flash memory addresses are initilazed to 0xFFFFFFFF,
Is it possible to initialize an address to ZERO once at programming stage ?
That means if I change the value of this address at execution, it should keep the last written value, even after a reset.

regards,

Parents Reply Children
  • The normal state for a flash cell is high, you can program it to any level you want, but it is a one way trip to zero. The use of hamming or error correcting codes may further limit your options for change.

    The design isn't going to change to accommodate your preference for it to be zero in the erased state, so you'll need to adapt your code, and strategy, to deal with that.