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

UICR register CUSTOMER [0] Read / write

OS in development environment :Windows7
HARD :(Taiyo Yuden)EBSHSN Series Evaluation Board : Central / Peripherals
CPU :(Nordic) nRF52832 / ARMR Cortex-M4F 32 bit processor 28-pin Land Grid Array / 15GPIOs / SWD
Soft Ver:nRF5_SDK_15.2.0_9412b96

Running the following program will not cause an error, but the value will not change.

1)The register display of the debugger is “0xffffffff”, but “0x00000000” is read.
----------< Data Read >--------------------------------------------------
static uint8_t Read_DeviceName[5];

Read_DeviceName[0] = NRF_UICR -> CUSTOMER[0]


2)Regisla display is “0xffffffff” even if “0x00000000” is written.
----------< Data Write >--------------------------------------------------
static uint8_t Read_DeviceName[5];

Read_DeviceName[0] = 0;
NRF_UICR -> CUSTOMER[0] = Read_DeviceName[0];
----------------------------------------------------------------------------
How do I write to and read from the UICR register?
* NRF5 SDK is used.

Parents Reply
  • Please tell me the range to be deleted in case of "nrf_nvmc_page_erase (0x10001080);"

    I don't know the range of deleting one page.Also, please tell me how to erase a narrow area.

    If "nrf_nvmc_page_erase ()" and "nrf_nvmc_write_words ()" are used while UART and BLE are operating, it will stop.

    Please tell me what to do before executing "nrf_nvmc_page_erase ()" and "nrf_nvmc_write_words ()".

    After execution, “sd_nvic_SystemReset ()” will be executed.
    Thanking you in advance

Children
Related