Hello,
I am using nRF52832, SDK_15.3.0, S132 SoftDevice and Segger for flashing the image. I am using ‘ble_app_blinky’. Currently it is SystemON mode. But I need to change to SystemOFF mode.
I have two buttons. One for Start mode and the other button for Stop mode. In Start mode, device should wakeup from SystemOFF mode and start some operations. In Stop mode, device should stop doing operations and go to SystemOFF mode.
During Start mode
1) As part of app_button_init(), buttons are configures as GPIOTE_CONFIG_IN_SENSE_TOGGLE(false). In this case if chip went to SystemOFF mode, whether
a) Pressing button will make chip reset and come out of SleepOFF mode, but button event handler will not execute ?
b) Whether Release button (Because of Toggle) will generate button event handler with button_action as APP_BUTTON_RELEASE ?
2) At the same time assume when chip is already wakeup (Come out of SystemOFF) mode and during this
a) when button is pressed & released, then whether button event handler will detect both Press & Release events ? (Above case only Release is detected ?).
During Stop mode
3) Since all buttons are configures as SENSE_TOGGLE, for Stop button if I press, it will generate PRESS event and call sd_power_system_off(), so that device will go to SystemOFF mode. But due to toggle sense, if I release Stop button whether chip will come-out of SystemOFF mode. Then in this case never chip will go to System OFF mode ?
Thanks & Regards
Vishnu Beema