NCS zephyr How to change VDD to 3.3v

Hello,

NCS1.99, nRF5340, VsCode, Windows10,

i konw SDK17.2 change vdd voltage,

but NCS zephyr How to change VDD to 3.3v?

        

Best regards

Parents Reply
  • Hi

    thanks for reply,

    i have never operated on registers,

    is this as follow?

    void gpio_output_voltage_3v3()
    {
    	if (NRF_UICR->VREGHVOUT != 5)
    	{
    		NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen;
    		while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
    
    		NRF_UICR->VREGHVOUT = 5;
    
    		NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren;
    		while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
    
    		// System reset is needed to update UICR registers.
    		NVIC_SystemReset();
    	}
    }

       

    Best regards

Children
No Data
Related