Hi,
This is unrelated to my other open question.
I have programmed the secure ble bootloader and can OTA flash the buttonless bootloader example.
My problem is that when I try to perform a buttonless update, the device restarts back into the app.
This issue does not happen on my nrf52832 dev board (s132). Only on my nrf52840 custom board (s140).
From what I can tell, the GPREGRET register is being set before the device restarts. But the bootloader doesn't read it correctly on boot.
Any help is greatly appreciated, I have spent a long time changing the configs and retrying. I have tried on gcc 8.3.1 and gcc 6.3.1. Even with my custom app, I can buttonless dfu on the nrf52832 but not the nrf52840.