summaryrefslogtreecommitdiffstats
path: root/tinyusb/hw/bsp/stm32f4/boards/stm32f401blackpill/board.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/hw/bsp/stm32f4/boards/stm32f401blackpill/board.mk')
-rwxr-xr-xtinyusb/hw/bsp/stm32f4/boards/stm32f401blackpill/board.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/tinyusb/hw/bsp/stm32f4/boards/stm32f401blackpill/board.mk b/tinyusb/hw/bsp/stm32f4/boards/stm32f401blackpill/board.mk
new file mode 100755
index 00000000..de0f3d4c
--- /dev/null
+++ b/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 $<