File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 20
20
include ../../../py/mkenv.mk
21
21
include $(BOARD_DIR ) /mpconfigboard.mk
22
22
23
- CMSIS_DIR =$(TOP ) /lib/stm32lib/CMSIS/STM32$(MCU_SERIES_UPPER ) xx/Include
24
23
MCU_SERIES_UPPER = $(shell echo $(MCU_SERIES ) | tr '[:lower:]' '[:upper:]')
24
+ CMSIS_MCU_LOWER = $(shell echo $(CMSIS_MCU ) | tr '[:upper:]' '[:lower:]')
25
+
26
+ CMSIS_DIR =$(TOP ) /lib/stm32lib/CMSIS/STM32$(MCU_SERIES_UPPER ) xx/Include
25
27
HAL_DIR =lib/stm32lib/STM32$(MCU_SERIES_UPPER ) xx_HAL_Driver
26
28
USBDEV_DIR =usbdev
27
29
DFU =$(TOP ) /tools/dfu.py
@@ -30,6 +32,7 @@ DEVICE=0483:df11
30
32
STFLASH ?= st-flash
31
33
OPENOCD ?= openocd
32
34
OPENOCD_CONFIG ?= boards/openocd_stm32f4.cfg
35
+ STARTUP_FILE ?= lib/stm32lib/CMSIS/STM32$(MCU_SERIES_UPPER ) xx/Source/Templates/gcc/startup_$(CMSIS_MCU_LOWER ) .o
33
36
34
37
CROSS_COMPILE = arm-none-eabi-
35
38
@@ -101,7 +104,7 @@ SRC_C = \
101
104
$(wildcard $(BOARD_DIR ) /* .c)
102
105
103
106
SRC_O = \
104
- ports/stm32/boards/startup_stm32 $( MCU_SERIES ) .o \
107
+ $( STARTUP_FILE ) \
105
108
ports/stm32/resethandler.o \
106
109
107
110
$(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