resources/gencfg/processors/boards/stm32f0xx/templates .. 3.0.x PD Buddy Sink PD_BUDDY_SINK <__early_init>/* Jump to the bootloader if the magic value is set in * dfu_reset_to_bootloader_magic. */ if (dfu_reset_to_bootloader_magic == RESET_TO_BOOTLOADER_MAGIC_CODE) { asm("cpsie i"); void (*bootloader)(void) = (void (*)(void)) (*((uint32_t *) SYSMEM_RESET_VECTOR)); dfu_reset_to_bootloader_magic = 0; __set_MSP(BOOTLOADER_STACK_POINTER); bootloader(); while (42); }
stm32f072_bootloader.h
STM32F072xB