Hello,
Currently my beaconing application draws approximately 10uA @ 1000ms advertising interval. I am having trouble getting the chip into system power off mode so the chip only draws around 1uA of current. I have defined CONFIG_GPIO_AS_PINRESET and P0.21 is configured as RESET in system_nrf52.c (I am using PCA10040).
I have a few questions I was hoping could get answered.
- How do you implement sd_power_system_off() so when I press the IF BOOT/RESET button, the chip goes into power off mode?
- How do you check if the IF BOOT/RESET button is pressed?
- Do I check the status of P0.21 using nrf_gpio_pin_read()? And make sure the value is equal to 1?
- How can I use the same button so once I release it the system wakes up again?
Thank you for your help.