File tree 1 file changed +3
-1
lines changed 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ include $(BOARD_DIR)/mpconfigboard.mk
22
22
23
23
CMSIS_DIR =$(TOP ) /lib/stm32lib/CMSIS/STM32$(MCU_SERIES_UPPER ) xx/Include
24
24
MCU_SERIES_UPPER = $(shell echo $(MCU_SERIES ) | tr '[:lower:]' '[:upper:]')
25
+ CMSIS_MCU_LOWER = $(shell echo $(CMSIS_MCU ) | tr '[:upper:]' '[:lower:]')
25
26
HAL_DIR =lib/stm32lib/STM32$(MCU_SERIES_UPPER ) xx_HAL_Driver
26
27
USBDEV_DIR =usbdev
27
28
DFU =$(TOP ) /tools/dfu.py
@@ -30,6 +31,7 @@ DEVICE=0483:df11
30
31
STFLASH ?= st-flash
31
32
OPENOCD ?= openocd
32
33
OPENOCD_CONFIG ?= boards/openocd_stm32f4.cfg
34
+ STARTUP_FILE ?= lib/stm32lib/CMSIS/STM32$(MCU_SERIES_UPPER ) xx/Source/Templates/gcc/startup_$(CMSIS_MCU_LOWER ) .o
33
35
34
36
CROSS_COMPILE = arm-none-eabi-
35
37
@@ -101,7 +103,7 @@ SRC_C = \
101
103
$(wildcard $(BOARD_DIR ) /* .c)
102
104
103
105
SRC_O = \
104
- ports/stm32/boards/startup_stm32 $( MCU_SERIES ) .o \
106
+ $( STARTUP_FILE ) \
105
107
ports/stm32/resethandler.o \
106
108
107
109
$(BUILD ) /$(HAL_DIR ) /Src/stm32$(MCU_SERIES ) xx_ll_usb.o : CFLAGS += -Wno-attributes
You can’t perform that action at this time.
0 commit comments