Not getting errors using OTP memory LPC54618

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Not getting errors using OTP memory LPC54618

1,041 次查看
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 项奖励
回复
3 回复数

970 次查看
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 项奖励
回复

962 次查看
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 项奖励
回复

1,013 次查看
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 项奖励
回复