aboutsummaryrefslogtreecommitdiff
path: root/circuitpython/lib/tinyusb/hw/bsp/stm32f4/boards/stm32f411blackpill/board.mk
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2022-06-19 19:47:51 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2022-06-19 19:47:51 +0530
commit4fd287655a72b9aea14cdac715ad5b90ed082ed2 (patch)
tree65d393bc0e699dd12d05b29ba568e04cea666207 /circuitpython/lib/tinyusb/hw/bsp/stm32f4/boards/stm32f411blackpill/board.mk
parent0150f70ce9c39e9e6dd878766c0620c85e47bed0 (diff)
add circuitpython code
Diffstat (limited to 'circuitpython/lib/tinyusb/hw/bsp/stm32f4/boards/stm32f411blackpill/board.mk')
-rw-r--r--circuitpython/lib/tinyusb/hw/bsp/stm32f4/boards/stm32f411blackpill/board.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/circuitpython/lib/tinyusb/hw/bsp/stm32f4/boards/stm32f411blackpill/board.mk b/circuitpython/lib/tinyusb/hw/bsp/stm32f4/boards/stm32f411blackpill/board.mk
new file mode 100644
index 0000000..78be434
--- /dev/null
+++ b/circuitpython/lib/tinyusb/hw/bsp/stm32f4/boards/stm32f411blackpill/board.mk
@@ -0,0 +1,12 @@
+CFLAGS += -DSTM32F411xE
+
+LD_FILE = $(BOARD_PATH)/STM32F411CEUx_FLASH.ld
+
+SRC_S += $(ST_CMSIS)/Source/Templates/gcc/startup_stm32f411xe.s
+
+# For flash-jlink target
+JLINK_DEVICE = stm32f411ce
+
+# flash target ROM bootloader
+flash: $(BUILD)/$(PROJECT).bin
+ dfu-util -R -a 0 --dfuse-address 0x08000000 -D $<