How can I change the regulator configuration (specially the LDO voltage output) in runtime, and also, how could I do it in compilation time?
PS: I use mcuboot as well.
How can I change the regulator configuration (specially the LDO voltage output) in runtime, and also, how could I do it in compilation time?
PS: I use mcuboot as well.
Hi Thiago,
You can change the output voltage levels by setting REGOUT0 accordingly: infocenter.nordicsemi.com/.../uicr.html
Best Regards,
Swathy
I have done it in runtime, but it does not work, and I actually don't know why.
void main(void){
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_3V0;
NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos;
}HI Thiago,
You will need to set the voltage using nrfjprog.. There is no function that writes to this section of uicr from the cpu itself.. You can take a look at this thread: Using nRF5340-PDK at 3.3V instead of 1.8V
Regards,
Swathy
The code actually worked. After a full erase of the chip it worked.