SDK 16, 52810
my board has done the change as the 52810 spec says about dcdc part. Now I wonder HOW do I enable it in my code. Somewhere it says to call sd_power_dcdc_mode_set() , but I couldn't this method in the SDK codes.
Thanks,
SDK 16, 52810
my board has done the change as the 52810 spec says about dcdc part. Now I wonder HOW do I enable it in my code. Somewhere it says to call sd_power_dcdc_mode_set() , but I couldn't this method in the SDK codes.
Thanks,
Hi,
Are you using a softdevice? If not, you can enable DCDC by writing directly to the registers:
NRF_POWER->DCDCEN = 1;
If you are using a softdevice, you can still use this approach, but then you need to set it before enabling the softdevice (for instance at the very start of main() function). After you have enabled the softdevice, you must use the function that you linked.
Best regards,
Jørgen
Thanks. Can I config sdk_config.h by change the NRFX_POWER_CONFIG_DEFAULT_DCDCEN value to 1?
That is also an alternative, but then you need to initialize the POWER driver for the config to take effect. Note that if you are using a softdevice, you should use the legacy power driver, as the nrfx version does not integrate with the softdevice.