Hello everyone,
I could use some help getting OTP to work.
What i am trying to write is a serial number into the OTP memory of the chip.
The board for its function needs to be run at 180Mhz. Code is switching to 12Mhz for OTP. can this be an issue?
The code is giving me weird and inconsistent results.
Also, do we have 2 or 4 banks of user writable registers available?
Ive atached the code as an atachement.
Can someone please help?,
Erik
Hello Alice,
The clock switches to 12Mhz, and i gave it some time extra.
It still produces odd behavior.
Can you take a look at my code?
Erik
Hello @erikbozelie
1) What is the specific issue about the "odd behavior."?
2) It hard find the issue just from your code, strongly recommend you first run otp demo under SDK, then development your own project based on it, and use the otp driver under SDK to program OTP.
BR
Alice
Hello @erikbozelie
1) "The board for its function needs to be run at 180Mhz. Code is switching to 12Mhz for OTP"
->> Do you mean before use OTP, switch system clock to 12 MHZ?
To use the OTP API, the main system clock must be running from the 12 MHz clock. The
OTP controller has critical timing values programmed so that running from clock speeds
above 12 MHz will result in inconsistent fuse burning and will yield unpredictable results.
2) "Also, do we have 2 or 4 banks of user writable registers available?"
->> There is OTP API:
BR
Alice