Hi !
I use the method in datasheet to change physaddr in otp, but it does not work. How could I change the physaddr in otp.
When the board power on, the physaddr is 0x0. Then I send a crm command 0x08180112 to change the physaddr to 0x1. I want physaddr keep 0x1 when the board reset. So I use the method in the datasheet below. The Lock_UF2 is 0, then I send crm command 0x18118a5b to write to the WRITE_OP_EN register. I can get the correct crm response. But then I send a crm command to read back the register value, I can not communicate with the board. And when I power off and on, the physaddr is still 0x0. How could I change the physaddr to 0x2 permanently?
Thanks!
Solved! Go to Solution.
Hi gangli_weride
Can you please confirm the voltage applied to BUS_I during programming ?
It needs to be within 9-11V for at least 10ms after the register $11 write command.
Hi!
Now I can change the physaddr by sending write $11 register data 0x8a. And the physaddr changed successfully!
But after I reset, there is a u_otp_err error. And I can not clear this error by reading DEVSTAT2 register. Is there something wrong?
Thanks! Hope for you response!
Hi gangli_weride
Can you please confirm the voltage applied to BUS_I during programming ?
It needs to be within 9-11V for at least 10ms after the register $11 write command.
Hi gangli_weride
Let me confirm with an expert on this device to have a definitive answer.
I will contact you soon
Have a great day and best of luck.
And why the u_otp_err happen? How could I clear this error?
Hi RafaR:
By the way, Could you show me how to clear u_otp_err in DEVSTAT2?
Hi gangli_weride
I am still in contact with the expert, let me share the information with you.
“The U_OTP_ERR cannot be cleared as the memory is only One Time Programmable (i.e OTP).”
I hope this information has helped you
Have a great day and best of luck.
Hi RafaR
Thanks for your help!
If there is U_OTP_ERR in DEVSTAT2, is it meaning the chip is broken? Because U_OTP_ERR influences the pdcm data
And how could I avoid U_OTP_ERR when I write $11 register?
Hope for you response!
Thanks!
Hi gangli
“if there is U_OTP_ERR in DEVSTAT2, is it meaning the chip is broken?”
I contacted the expert to see if there was any way to fix it but no.
“The device will remain definitively in that state.”
I hope this information has helped you.
Have a great day and best of luck.
Hi gangli_weride
Could you check if the UF2 regions are not locked before and after the reset?, It seems to be exactly what is happening to you.
Have a great day and best of luck.
Before send crm 0x1811820c to write OTP:0x5f register data: 0x00, LOCK_UF2 was not set.
Sending crm 0x181182f8, response: 0x18820087. The crm was sending correctly.
After send crm 0x181182f8, I read 0x5f register, there is no response of crm 0x105f00f8, I can check the LOCK_UF2.
Thanks!