Hi there,
I'm trying to get a one button nrf52832 device to behave like the following:
1. Button press short: RESET or WAKE (depending on POWER state)
2. Button press long: POWEROFF
3. Button pressed while being connected to power source: DFU
Features 2 and 3 work fine, but every time I wake the device with a button press it goes to DFU instead of running the app.
I played around with GPREGRET a bit, but it seems those registers get overwritten by the bootloader.
This post (https://devzone.nordicsemi.com/f/nordic-q-a/33507/bootloader-deep-sleep/128954#128954) talks very briefly about "disabling the BOOTLOADER_BUTTON", but it's unclear to me how to do that, and still retain the wake functionality.
So if somebody could shed some light on wether it's possible to get features 1-3 implemented and if yes, I'd be very thankful.
Best