Hello everyone,
I'm using PDK 52840 as Programmer/Debugger for our target board with nRF52840 chip. We have also other componen which need 2.5V voltage (down from 3v) and therefore I want to set the VDD voltage to 2,5 Volts. I have tried to change the UICR->Regout0 with:
if (NRF_UICR->REGOUT0 != UICR_REGOUT0_VOUT_DEFAULT)
{
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_2V4;
NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos;
while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
}
NRF_USBD->ENABLE = 1;
but it doesn't work. I ve read some other posts regarding UICR but the instruction was for KEIL IDE and we use IAR.
I would be nice if you could help me with that problem.
I am using SDK15 and DK version 0.9.
Regards