This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

sd_power_dcdc_mode_set always return SUCCESS?

Hi,

Currently I am trying to test DCDC mode on my custom board nrf52832. After soldering 15nH and 10uH on DCC(pin 47), I issued the following command after softdevice enabled:

sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);

It returned SUCCESS.

However, since I do not know whether it worked or not. I tried another board without 15nH and 10uH soldered. That command still success without error reported.

May I ask, is it expected? How could I know DCDC mode is correctly working?

Thanks

  • Why don't you just read the documentation for the function you're calling which shows it returns either NRF_SUCCESS or NRF_ERROR_INVALID_PARAM. Or read the product spec which shows you can set the register but there's no register to read to confirm any information about whether it worked or not.

    Then you would have been able to answer your own question.

  • Hi RK,

    Thanks for your quick response. I have seen the document. Actually, it will return another error NRF_ERROR_SOFTDEVICE_NOT_ENABLED. After I met that error, I moved that code after softdevice enabled. I guess I can not fully trust the document, right? :-)

    So finally, I soldered the 15nH and 10uH but does not know it really works or not. I guess another way to test is to measure the current consumption - I do not have the equipment

Related