Not getting errors using OTP memory LPC54618

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Not getting errors using OTP memory LPC54618

1,141件の閲覧回数
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 返答(返信)

1,070件の閲覧回数
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 件の賞賛
返信

1,062件の閲覧回数
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,113件の閲覧回数
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 件の賞賛
返信