summaryrefslogtreecommitdiff
path: root/platforms/chibios/bootloaders/stm32duino.c
diff options
context:
space:
mode:
Diffstat (limited to 'platforms/chibios/bootloaders/stm32duino.c')
-rw-r--r--platforms/chibios/bootloaders/stm32duino.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/platforms/chibios/bootloaders/stm32duino.c b/platforms/chibios/bootloaders/stm32duino.c
index 53d3ba0adb..e2db7fa16c 100644
--- a/platforms/chibios/bootloaders/stm32duino.c
+++ b/platforms/chibios/bootloaders/stm32duino.c
@@ -21,3 +21,8 @@
__attribute__((weak)) void bootloader_jump(void) {
NVIC_SystemReset();
}
+
+__attribute__((weak)) void mcu_reset(void) {
+ BKP->DR10 = RTC_BOOTLOADER_JUST_UPLOADED;
+ NVIC_SystemReset();
+} \ No newline at end of file