Skip to content

Commit

Permalink
Add BluePill target with DFU
Browse files Browse the repository at this point in the history
  • Loading branch information
Disasm committed Oct 12, 2019
1 parent 28b2253 commit 0b02208
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ BUILD_DIR ?= ./build

all: DAP42.bin DAP42DC.bin KITCHEN42.bin \
DAP103.bin DAP103-DFU.bin \
DAP103-BLUEPILL.bin \
DAP103-BLUEPILL.bin DAP103-BLUEPILL-DFU.bin \
DAP103-NUCLEO-STBOOT.bin \
BRAINv3.3.bin \
DAP42K6U.bin
Expand Down Expand Up @@ -75,6 +75,12 @@ DAP103-BLUEPILL.bin: | $(BUILD_DIR)
$(Q)$(MAKE) TARGET=STM32F103-BLUEPILL -C src/
$(Q)cp src/DAP42.bin $(BUILD_DIR)/$(@)

DAP103-BLUEPILL-DFU.bin: | $(BUILD_DIR)
@printf " BUILD $(@)\n"
$(Q)$(MAKE) TARGET=STM32F103-BLUEPILL-DFUBOOT -C src/ clean
$(Q)$(MAKE) TARGET=STM32F103-BLUEPILL-DFUBOOT -C src/
$(Q)cp src/DAP42.bin $(BUILD_DIR)/$(@)

BRAINv3.3.bin: | $(BUILD_DIR)
@printf " BUILD $(@)\n"
$(Q)$(MAKE) TARGET=BRAINV3.3 -C src/ clean
Expand Down
8 changes: 8 additions & 0 deletions src/targets.mk
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ ifeq ($(TARGET),STM32F103-BLUEPILL)
DEFS += -DDFU_AVAILABLE=0
ARCH = STM32F1
endif
ifeq ($(TARGET),STM32F103-BLUEPILL-DFUBOOT)
TARGET_COMMON_DIR := ./stm32f103
TARGET_SPEC_DIR := ./stm32f103/bluepill
LDSCRIPT ?= ./stm32f103/stm32f103x8-dfuboot.ld
DEFS += -DDFU_AVAILABLE=1
ARCH = STM32F1
DFU_VID_PID := 1209:db42
endif
ifeq ($(TARGET),STM32F103-DFUBOOT)
TARGET_COMMON_DIR := ./stm32f103
TARGET_SPEC_DIR := ./stm32f103/stlinkv2-dongle
Expand Down

0 comments on commit 0b02208

Please sign in to comment.