This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

is there an OTP memory in nRF 52

I need to save a serial number that is one time configurable. Is there an OTP memory where I can save that number?

Parents
  • Sort of: there is UICR region which can be rewritten (erased) only by erasing whole flash memory content. But if you look for true "only once in the life-time" or "cannot be written more than once" (because UICR can be written several times and if you don't erase it in between it will simply hold the superposition of these two writes) then you are out of luck. Btw. each nRF5x chip has already 8-byte random serial number burned into FICR so you might be redeveloping the wheel;)

    In every case read more about UICR and FICR registers in product specification on Infocenter.

  • You are correct. In the nRF51 series the UICR could only be erased by doing an ERASE ALL, but in the nRF52 series we added the capability to erase the UICR separately. Either internally, or externally by using the nrfjprog command line utility.

    We don't have a proper OTP section in the nRF52, but you can use the UICR for this purpose as long as you take care not to erase it.

    Best regards

Reply
  • You are correct. In the nRF51 series the UICR could only be erased by doing an ERASE ALL, but in the nRF52 series we added the capability to erase the UICR separately. Either internally, or externally by using the nrfjprog command line utility.

    We don't have a proper OTP section in the nRF52, but you can use the UICR for this purpose as long as you take care not to erase it.

    Best regards

Children
Related