Skip to main content
tan loi
Associate II
November 12, 2017
Solved

STM32F4 FLASH One-Time programmable (OTP)

  • November 12, 2017
  • 2 replies
  • 1577 views
Posted on November 12, 2017 at 16:57

I make a simple project to write and read data from FLASH OTP. I checked states of 16 blocks in OTP , have 3 block is block (state 0x00) and i write to other block with state 0xff. But i just correct only 1 times, and i try to change some data to write and read it back again, it's wrong data. Please help me to dead with this problem , and how i can 'unblock' 3 block are blocked with st-utility 5.1. 

    This topic has been closed for replies.
    Best answer by Tesla DeLorean
    Posted on November 12, 2017 at 18:36

    You get to program it ONE TIME, try to program a second time you should expect to get an error. Read out the current content on your second run. You cannot erase/change OTP once written, that's the nature of the beast.

    2 replies

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    November 12, 2017
    Posted on November 12, 2017 at 18:36

    You get to program it ONE TIME, try to program a second time you should expect to get an error. Read out the current content on your second run. You cannot erase/change OTP once written, that's the nature of the beast.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    tan loi
    tan loiAuthor
    Associate II
    November 13, 2017
    Posted on November 13, 2017 at 11:18

    Thanks for your answer, now I understand.

    :)