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

sd_app_evt_wait() doesn't give microamps consumption

Okay, I know there's a lot of threads about the subject. I have tried to read them all, with no help. My device still consumes 1.4 mA. Resetting does not help, so I assume it's not the debug-mode issue.

There's a lot of mentions that I should put all the peripherals I don't need into off state, before entering sd_app_evt_wait(). However, I cannot find any examples how to do that. That is, a piece of C-code how all those peripherals (UART, TWI etc.) can be configured into off state? Of course, such codes must exist somewhere, but why you cannot include them into all those answers? Links?

(If I put the whole system into off state using sd_power_system_off() I can reach 48 uA, which is quite reasonable due to other external peripherals we have on the board.)

Please help, I am quite frustrated... :(

Parents
  • It looks like at least UART is causing part of the issue. If I leave away this call: simple_uart_config(RTS_PIN_NUMBER, TX_PIN_NUMBER, CTS_PIN_NUMBER, RX_PIN_NUMBER, false)

    The consumption drops to 100 uA and below. But since I need UART, I would like to know how to switch it off before entering sd_app_evt_wait()?

    (By the way, those old-fashioned underscores make your code very hard to read because of visual unclarity. Consider switching to modern coding style, like SdApp_evtWait()...)

Reply
  • It looks like at least UART is causing part of the issue. If I leave away this call: simple_uart_config(RTS_PIN_NUMBER, TX_PIN_NUMBER, CTS_PIN_NUMBER, RX_PIN_NUMBER, false)

    The consumption drops to 100 uA and below. But since I need UART, I would like to know how to switch it off before entering sd_app_evt_wait()?

    (By the way, those old-fashioned underscores make your code very hard to read because of visual unclarity. Consider switching to modern coding style, like SdApp_evtWait()...)

Children
No Data
Related