[riot-notifications] [RIOT-OS/RIOT] cpu/stm32: implement reset to bootloader (#14119)

benpicco notifications at github.com
Sat May 23 14:32:53 CEST 2020


@benpicco commented on this pull request.



> + *              See application note AN2606 for which options are available on
+ *              your individual MCU.
+ *
+ * @author      Benjamin Valentin <benpicco at googlemail.com>
+ *
+ * @}
+ */
+
+#include "cpu.h"
+#include "periph_cpu.h"
+
+#define BOOTLOADER_MAGIC    0xB007AFFE
+
+static uint32_t _magic __attribute__((section(".noinit")));
+
+void pre_startup(void)

It's in [`reset_handler_default()`](https://github.com/RIOT-OS/RIOT/blob/master/cpu/cortexm_common/vectors_cortexm.c#L102).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14119#discussion_r429542170
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200523/0529faef/attachment-0001.htm>


More information about the notifications mailing list