Not getting errors using OTP memory LPC54618

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Not getting errors using OTP memory LPC54618

1,121 Views
erikbozelie
Contributor I

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

0 Kudos
Reply
3 Replies

1,050 Views
erikbozelie
Contributor I

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

0 Kudos
Reply

1,042 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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.

Alice_Yang_0-1688479085747.png

 

BR

Alice

0 Kudos
Reply

1,093 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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:

Alice_Yang_0-1687690560412.png

 

BR

Alice

 

0 Kudos
Reply