%.flash: %.bin
@printf " FLASH $<\n"
- $(Q)dfu-util -a2 -D $(*).bin
+ $(Q)dfu-util -D $(*).bin
+# For the STM32duino-bootloader, we used:
+# $(Q)dfu-util -a2 -D $(*).bin
else
OBJS=test.o
LIB_OBJS=util-debug.o
-# WITH_BOOT_LOADER=1
-# WITH_DFU_FLASH=1
-WITH_SERIAL_FLASH=1
+WITH_BOOT_LOADER=1
+WITH_DFU_FLASH=1
+# WITH_SERIAL_FLASH=1
include $(ROOT)/mk/bluepill.mk
clock_setup();
gpio_setup();
tick_setup();
- // This is needed when programming via serial boot loader, harmless otherwise.
- SCB_VTOR = 0x08000000;
+ // When using the serial boot loader, we need this:
+ // SCB_VTOR = 0x08000000;
cm_enable_interrupts();
for (;;) {