This is my environment
- IDE: VSC
- SDK: NCS v2.2.0
- nRF52832 on nRF52-DK
- I've cut the SB9 link on the DK so I can measure the current only going to the nRF52832 IC, and am measuring the current using my CurrentRanger
This is what I am trying to do:
- Have my CPU go into a low power idle mode (should be < 2uA current consumption), then come out of this mode with a GPIO trigger
- Disable any peripherals prior to going into idle mode, then re-enable them on exit. Note, I've disabled pretty much everything except UART0 in my overlay file
I've attached my test code to this ticket. Nothing proprietary about this :-)
Here's what I am seeing:
- in idle mode, I'm drawing about 200uA
- pressing any of buttons 1, 2 or 3 seems to trigger the CPU out of idle and send my printk("Waking up from idle mode\n") statement to the Terminal, and toggle the appropriate LED. However I'm not seeing the printk("Button x pressed\n") message for some reason.
- If I press Button 2, then when it toggles the LED on, the current draw seems to drop down to something close to the 2uA I am expecting. But this doesn't occur if I press Button 1 or 3, and if I press Button 2 a second time, so the LED goes off, the current goes up to ~ 200uA again
If I interpret the schematics for the nRF52-DK correctly, the only thing being powered via the "nRF Current Measurement" header P22 is the nRF52832 chip if SB9 is open circuit.
Can anyone see what I'm doing wrong?
Thanks and regards,
Mike