Which registers in the UICR of the nRF5340 are reserved for user access?

As far as I know, UICR->OTP should be similar to the UICR->CUSTOM register in the nRF52 series. However, I have learned that the nRF Secure Immutable Bootloader (NSIB) writes some parameters to the OTP registers. So, I would like to know which registers are reserved for user access?

Parents
  • Hi Gray,

    Thank you for contacting DevZone at NordicSemi.

    We have bootloader storage library described here

    The bootloader storage library is used to read and write both one-time programmable (OTP) data and a non-volatile counter. If the nRF Secure Immutable Bootloader (NSIB) is enabled, it should be the only user of this library. The application image can only include this library when the NSIB is disabled.

    The library uses either the OTP region of the User information configuration registers (UICR), when present on SoCs like the nRF9160 or nRF5340, or the internal flash memory. When the library uses the internal flash memory, the bootloader blocks the write access before booting the next image.

    Regarding nrf5340, UICR is present both in the Application core and in the Network core.

    writes some parameters to the OTP register

    which parameters you are referring to? Can you share more details / link of the information.

    On the network core of nrf5340, UICR.Customer[n] (starting at 0x01FF8000 + 0x300  address) are reserved for customer.

    On the application core, UICR.OTP[n] (starting at 0x00FF8000 + 0x100 address) are one time programmable (RW1).

    Please refer to nRF5340 Product Specification for more details.

    Regards,

    Naeem

  • Hi, Naeem

    which parameters you are referring to? Can you share more details / link of the information

    My purpose is to find an area reserved for customers in UICR to write some parameters. For example: I want to write mac address, token value, key, etc., which will not be modified in the application.

    On the application core,between NRFCPINS and OTP registers, there are still some addresses that are not used (0xff8028~0xff8100)?  Are these reserved for customers?

  • Hi Gray,

    Thank you for your patience.

    The registers which are not described (or provided information about) in the product specification are hidden registers that customer is not supposed to deal with, like the ones you have mentioned. 

    Touching hidden registers is not recommended and may lead to unpredictable behavior.

    Regards,
    Naeem

  • Hi Naeem,

    Can I set the provision area on the internal flash like nrf52x, so that all OTP registers are used by customers?

    The current partition is as follows:

    In addition, I don't understand why nrf5340 does not set provision on flash by default.

Reply Children
Related