diff options
Diffstat (limited to 'circuitpython/lib/tinyusb/hw/bsp/stm32f4/boards/stm32f401blackpill/board.mk')
-rw-r--r-- | circuitpython/lib/tinyusb/hw/bsp/stm32f4/boards/stm32f401blackpill/board.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/circuitpython/lib/tinyusb/hw/bsp/stm32f4/boards/stm32f401blackpill/board.mk b/circuitpython/lib/tinyusb/hw/bsp/stm32f4/boards/stm32f401blackpill/board.mk new file mode 100644 index 0000000..de0f3d4 --- /dev/null +++ b/circuitpython/lib/tinyusb/hw/bsp/stm32f4/boards/stm32f401blackpill/board.mk @@ -0,0 +1,12 @@ +CFLAGS += -DSTM32F401xC + +LD_FILE = $(BOARD_PATH)/STM32F401VCTx_FLASH.ld + +SRC_S += $(ST_CMSIS)/Source/Templates/gcc/startup_stm32f401xc.s + +# For flash-jlink target +JLINK_DEVICE = stm32f401cc + +# flash target ROM bootloader +flash: $(BUILD)/$(PROJECT).bin + dfu-util -R -a 0 --dfuse-address 0x08000000 -D $< |