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

Debugging Power using on nRF52

Hi,

I've got an application running on an nRF52, and it's calling sd_app_evt_wait() from the main loop - and it's staying in that function pretty much all the time.

However, measuring the current drawn across the nRF current measurement jumper gives me 0.5mA. How would I go about debugging why this is? Are there any registers I can look at to see what's keeping the nRF52 from sleeping properly?

thanks!

Parents
  • Hi,

    Likely you are running the HFCLK which consumes current on this order, try disabling it before you go to sleep.

    Best regards,

    Øyvind

  • Hi,

    Follow this question to enable debug mode. In a Keil debug session you can press

    • Peripherals -> System Viewer -> [YOUR DESIRED PERIPHERAL]

    Set a breakpoint at sd_app_evt_wait() and observe the register values in the right hand bar. You can also use a multimeter to monitor current (a bit rough, won't work for high speed changes, but sometimes enough to estimate).

Reply
  • Hi,

    Follow this question to enable debug mode. In a Keil debug session you can press

    • Peripherals -> System Viewer -> [YOUR DESIRED PERIPHERAL]

    Set a breakpoint at sd_app_evt_wait() and observe the register values in the right hand bar. You can also use a multimeter to monitor current (a bit rough, won't work for high speed changes, but sometimes enough to estimate).

Children
No Data