This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SDK 16, 52810, How to enable DCDCEN in code? I have already done the change of hardware

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,

Parents
  • 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

Reply
  • 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

Children
Related