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;
}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;
}