AnsweredAssumed Answered

Guidelines needed for writing multiple OTP pages on bf52x

Question asked by dehkl on Mar 14, 2011
Latest reply on Mar 16, 2011 by JoeT

Hi,

I am writing up to 10 OTP pages one after each other.

The problem is that the programming fails after 2 or 3 page writes.

 

The sequence for one page write looks like this:

- OTP_INIT

- read page (2xbfrom_OtpRead()) and compare with data to be written (to see if it is already written)

- OTP_CLOSE

- Enable VPPOTP

- wait 50ms

- OTP_INIT

- write page bfrom_OtpWrite lower and upper

- OTP_CLOSE

- wait 10ms

- OTP_INIT

- read page (2xbfrom_OtpRead()) and compare with data just written (to see if it is already written)

- OTP_CLOSE

 

The many calls to bfrom_OtpCommand() with OTP_INIT and OTP_CLOSE is because how I arranged the atomic functions for each read / write task.

I have tried to enable VPPOTP only once before starting to write but the problem persists.

 

The process works but we currently need to run the program 4-5 times to get all 5 keys written and verified.

 

I can't find any information regarding these type of limitations in the documentation so some guidelines how to do this would be greatly appreciated.

 

Thanks,

Jens

Outcomes