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

REGOUT0 set to 3.3V fail buttonless DFU

Hi, 

 I've nrf52840, s140 with SDK17.2 and I was able to set REGOUT0 to 3.3V in 2 ways.

if (NRF_UICR->REGOUT0 != UICR_REGOUT0_VOUT_3V3)
{
NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos;
while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
NRF_UICR->REGOUT0 = UICR_REGOUT0_VOUT_3V3;

NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos;
while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
}

or 

nrfjprog.exe --memwr 0x10001304  --val 0xFFFFFFFD

After that I do buttonless DFU and noticed that failed.

If I keep REGOUT0 to 1.8V, buttonless DFU work. Any idea what is causing DFU to fail when I set regout0 to 3.3V?

My DFU was based on below instructions.

github.com/.../nRF52832-buttonless-dfu-development-tutorial

Thanks,

Related