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

nRF52840 power questions: DC/DC converter and powering down the system

I've got a couple of puzzles relating to a 52840 design that evolved from an 52832 design, belonging to a customer. 

1) following the suggestions at https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf52-designs #1, I verified that the DC/DC converter is populated as suggested in the datasheet.  I then went into the sdk_config.h file and turned on NRFX_POWER_ENABLED, NRF_POWER_CONFIG_DEFAULT_DCDCEN, and left NRF_POWER_DEFAULT_DCDENHV turned off. Quiescent power (with no BLE communications) went up from 1.2mA to 1.9mA. This seems counterintuitive - are there additional configuration options that we should be paying attention to if we turn on NRFX_POWER? Or is this actually the correct way to enable the DC/DC converter?

2) after calling sd_power_system_off() we still see 1mA of power usage, with the peripherals around the chip being identical to those used with the 52832, where calling that same function drops the usage down to about 20uA.  After reading somewhere that EASY_DMA might prevent sleep, we explicitly turn off the UART with 

NRF_UART0->ENABLE = (0 << UART_ENABLE_ENABLE_Pos);

and turn off the SPI with 

nrf_drv_spi_uninit(&spi);

but these don't seem to help. What else might be holding the power high at this point?

Thanks!

Pierre

Parents
  • Hi

    1. What exactly is it that causes the current consumption to increase from 1.2mA to 1.9mA? Please note that the current consumption is a little higher during BLE advertising in the nRF52840 than the nRF52832 in general. This is reflected in the product specification as well as the Online Power Profiler for BLE. Or do you mean that enabling DCDC in your application is what is increasing the current consumption? Can you confirm that the two inductors L2 and L3 are added to your design (which are required for the DCDC regulator to operate as intended?

    When you're using a SoftDevice, you should use the sd_power_dcdc_mode_set() function to enable the DCDC regulator. 

    2. When you're still seeing ~1mA of power after calling sd_power_system_off() points to the device being in DEBUG mode. You can disable DEBUG mode to make sure that DEBUG is not set in your project's preprocessor definitions, and make sure that you power cycle your device after programming it. If it's a custom board, also make sure that the debugger is disconnected from your device.

    Best regards,

    Simon

Reply
  • Hi

    1. What exactly is it that causes the current consumption to increase from 1.2mA to 1.9mA? Please note that the current consumption is a little higher during BLE advertising in the nRF52840 than the nRF52832 in general. This is reflected in the product specification as well as the Online Power Profiler for BLE. Or do you mean that enabling DCDC in your application is what is increasing the current consumption? Can you confirm that the two inductors L2 and L3 are added to your design (which are required for the DCDC regulator to operate as intended?

    When you're using a SoftDevice, you should use the sd_power_dcdc_mode_set() function to enable the DCDC regulator. 

    2. When you're still seeing ~1mA of power after calling sd_power_system_off() points to the device being in DEBUG mode. You can disable DEBUG mode to make sure that DEBUG is not set in your project's preprocessor definitions, and make sure that you power cycle your device after programming it. If it's a custom board, also make sure that the debugger is disconnected from your device.

    Best regards,

    Simon

Children
  • Hi Simon,

    I tried the sd_power_dcdc_mode_set() instead – thank you for pointing to that, since the documentation is sorely lacking an indication that the sdk_config settings should NOT be used if an SD is present.  Enabling that routine does seem to raise the power drain very slightly (it has some new peaks at 1.6mA for about 15 seconds but settles around 1.2mA which is similar to before) though my understanding was that enabling the DC/DC converter should have shown some noticeable reduction in power.  I checked, and L2 and L3 are installed, with the correct values.

     

    1. the test in “off mode” was done with the production (non-debug) build with the J-Link board disconnected, which is why I remain puzzled as to why consumption is still around 1mA

     

    Thanks!

    Pierre

Related