Skip to main content
tan loi
Associate II
Nov 12, 2017 3:57 PM UTC
Solved

STM32F4 FLASH One-Time programmable (OTP)

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.
    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Nov 12, 2017 5:36 PM UTC
    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..

    2 replies

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Nov 12, 2017 5:36 PM UTC
    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
    Nov 13, 2017 10:18 AM UTC
    Posted on November 13, 2017 at 11:18

    Thanks for your answer, now I understand.

    :)