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

Marian Buschsieweke notifications at github.com
Sat May 23 10:55:13 CEST 2020

@maribu commented on this pull request.

> +#define BOOTLOADER_MAGIC    0xB007AFFE
+static uint32_t _magic __attribute__((section(".noinit")));

Or maybe better provide a function, that could be replaced with architecture specific code if available?

bool magic_is_sram_uninitialized __attribute__((weak)) {
    const uint32_t cookie = 0x52494f54; /* <-- ASCII of "RIOT" */
    static uint32_t magic __attribute__((section(".noinit")));
    if (magic != cookie) {
        magic = cookie;
        return true;
    return false;

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200523/77390865/attachment.htm>

More information about the notifications mailing list