From 3f7312e98e580c2225c1bfbc348ed08cadaeeaa3 Mon Sep 17 00:00:00 2001 From: taco Date: Sat, 8 Mar 2025 07:17:16 +1100 Subject: [PATCH] OTA DFU resiliency fix. See Montvydas/Adafruit_nRF52_Bootloader@8f31fd999e863028461d7fffa8b4860cf57466db --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 92ad020..7cb18d0 100644 --- a/src/main.c +++ b/src/main.c @@ -216,6 +216,7 @@ int main(void) { bootloader_app_start(); } + NRF_POWER->GPREGRET = 0xA8; // No application was loaded, reset the system with the OTA DFU update NVIC_SystemReset(); }