HI: It is correct that call the function nrf_nvmc_write_word at nrf51_sdk_v4_4_2 and s110_nrf51822_5.2.1。
void FlashWRPProcess(void)
{
#define NRF_UICR_RBPCONF_ADDRESS 0x10001004UL
TRACE_INFO2("NRF_UICR->RBPCONF = %x", NRF_UICR->RBPCONF);
if(NRF_UICR->RBPCONF != 0)
{
nrf_nvmc_write_word(NRF_UICR_RBPCONF_ADDRESS, 0x00000000UL);
}
}
But now, It is HardFault failure that use nrf51_sdk_v5_2_0 and s110_nrf51822_6.0.0.
why?