cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 FLASH One-Time programmable (OTP)

tan loi
Associate II
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. 

1 ACCEPTED SOLUTION

Accepted Solutions
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
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2
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
Up vote any posts that you find helpful, it shows what's working..
tan loi
Associate II
Posted on November 13, 2017 at 11:18

Thanks for your answer, now I understand.

🙂