File tree Expand file tree Collapse file tree 9 files changed +30
-40
lines changed Expand file tree Collapse file tree 9 files changed +30
-40
lines changed Original file line number Diff line number Diff line change
1
+ MCU_VARIANT = stm32f070xb
2
+
1
3
CFLAGS += -DSTM32F070xB -DCFG_EXAMPLE_VIDEO_READONLY
2
4
3
5
# Linker
Original file line number Diff line number Diff line change
1
+ MCU_VARIANT = stm32f072xb
2
+
1
3
CFLAGS += -DSTM32F072xB -DLSI_VALUE=40000 -DCFG_EXAMPLE_VIDEO_READONLY
2
4
3
- SRC_S_GCC += $( ST_CMSIS ) /Source/Templates/gcc/startup_stm32f072xb.s
5
+ # Linker
4
6
LD_FILE_GCC = $(BOARD_PATH ) /STM32F072VBTx_FLASH.ld
5
7
6
- SRC_S_IAR += $(ST_CMSIS ) /Source/Templates/iar/startup_stm32f072xb.s
7
- LD_FILE_IAR = $(ST_CMSIS ) /Source/Templates/iar/linker/stm32f072xb_flash.icf
8
-
9
8
# For flash-jlink target
10
9
JLINK_DEVICE = stm32f072vb
11
10
Original file line number Diff line number Diff line change
1
+ MCU_VARIANT = stm32f723xx
2
+
1
3
# Only OTG-HS has a connector on this board
2
4
PORT ?= 1
3
5
SPEED ?= high
@@ -6,13 +8,8 @@ CFLAGS += \
6
8
-DSTM32F723xx \
7
9
-DHSE_VALUE=25000000 \
8
10
9
- # GCC
10
- SRC_S_GCC += $(ST_CMSIS ) /Source/Templates/gcc/startup_stm32f723xx.s
11
+ # Linker
11
12
LD_FILE_GCC = $(BOARD_PATH ) /STM32F723xE_FLASH.ld
12
13
13
- # IAR
14
- SRC_S_IAR += $(ST_CMSIS ) /Source/Templates/iar/startup_stm32f723xx.s
15
- LD_FILE_IAR = $(ST_CMSIS ) /Source/Templates/iar/linker/stm32f723xx_flash.icf
16
-
17
14
# flash target using on-board stlink
18
15
flash : flash-stlink
Original file line number Diff line number Diff line change
1
+ MCU_VARIANT = stm32f723xx
2
+
1
3
PORT ?= 1
2
4
SPEED ?= high
3
5
4
6
CFLAGS += \
5
7
-DSTM32F723xx \
6
8
-DHSE_VALUE=25000000 \
7
9
8
- # GCC
10
+ # Linker
9
11
LD_FILE_GCC = $(BOARD_PATH ) /STM32F723xE_FLASH.ld
10
- SRC_S_GCC += $(ST_CMSIS ) /Source/Templates/gcc/startup_stm32f723xx.s
11
-
12
- # IAR
13
- SRC_S_IAR += $(ST_CMSIS ) /Source/Templates/iar/startup_stm32f723xx.s
14
- LD_FILE_IAR = $(ST_CMSIS ) /Source/Templates/iar/linker/stm32f723xx_flash.icf
15
12
16
13
# flash target using on-board stlink
17
14
flash : flash-stlink
Original file line number Diff line number Diff line change
1
+ MCU_VARIANT = stm32f746xx
2
+
1
3
PORT ?= 1
2
4
SPEED ?= high
3
5
4
6
CFLAGS += \
5
7
-DSTM32F746xx \
6
8
-DHSE_VALUE=25000000
7
9
8
- # GCC
10
+ # Linker
9
11
LD_FILE_GCC = $(BOARD_PATH ) /STM32F746ZGTx_FLASH.ld
10
- SRC_S_GCC += $(ST_CMSIS ) /Source/Templates/gcc/startup_stm32f746xx.s
11
-
12
- # IAR
13
- SRC_S_IAR += $(ST_CMSIS ) /Source/Templates/iar/startup_stm32f746xx.s
14
- LD_FILE_IAR = $(ST_CMSIS ) /Source/Templates/iar/linker/stm32f746xx_flash.icf
15
12
16
13
# flash target using on-board stlink
17
14
flash : flash-stlink
Original file line number Diff line number Diff line change
1
+ MCU_VARIANT = stm32f746xx
2
+
1
3
PORT ?= 0
2
4
SPEED ?= full
3
5
4
6
CFLAGS += \
5
7
-DSTM32F746xx \
6
8
-DHSE_VALUE=8000000
7
9
8
- # GCC
10
+ # Linker
9
11
LD_FILE_GCC = $(BOARD_PATH ) /STM32F746ZGTx_FLASH.ld
10
- SRC_S_GCC += $(ST_CMSIS ) /Source/Templates/gcc/startup_stm32f746xx.s
11
-
12
- # IAR
13
- SRC_S_IAR += $(ST_CMSIS ) /Source/Templates/iar/startup_stm32f746xx.s
14
- LD_FILE_IAR = $(ST_CMSIS ) /Source/Templates/iar/linker/stm32f746xx_flash.icf
15
12
16
13
# flash target using on-board stlink
17
14
flash : flash-stlink
Original file line number Diff line number Diff line change
1
+ MCU_VARIANT = stm32f767xx
2
+
1
3
PORT ?= 0
2
4
SPEED ?= full
3
5
4
6
CFLAGS += \
5
7
-DSTM32F767xx \
6
8
-DHSE_VALUE=8000000 \
7
9
8
- # GCC
10
+ # Linker
9
11
LD_FILE_GCC = $(BOARD_PATH ) /STM32F767ZITx_FLASH.ld
10
- SRC_S_GCC += $(ST_CMSIS ) /Source/Templates/gcc/startup_stm32f767xx.s
11
-
12
- # IAR
13
- SRC_S_IAR += $(ST_CMSIS ) /Source/Templates/iar/startup_stm32f767xx.s
14
- LD_FILE_IAR = $(ST_CMSIS ) /Source/Templates/iar/linker/stm32f767xx_flash.icf
15
12
16
13
# For flash-jlink target
17
14
JLINK_DEVICE = stm32f767zi
Original file line number Diff line number Diff line change
1
+ MCU_VARIANT = stm32f769xx
2
+
1
3
# Only OTG-HS has a connector on this board
2
4
PORT ?= 1
3
5
SPEED ?= high
@@ -6,13 +8,8 @@ CFLAGS += \
6
8
-DSTM32F769xx \
7
9
-DHSE_VALUE=25000000 \
8
10
9
- # GCC
11
+ # Linker
10
12
LD_FILE_GCC = $(BOARD_PATH ) /STM32F769ZITx_FLASH.ld
11
- SRC_S_GCC += $(ST_CMSIS ) /Source/Templates/gcc/startup_stm32f769xx.s
12
-
13
- # IAR
14
- SRC_S_IAR += $(ST_CMSIS ) /Source/Templates/iar/startup_stm32f769xx.s
15
- LD_FILE_IAR = $(ST_CMSIS ) /Source/Templates/iar/linker/stm32f769xx_flash.icf
16
13
17
14
# flash target using on-board stlink
18
15
flash : flash-stlink
Original file line number Diff line number Diff line change @@ -56,3 +56,10 @@ INC += \
56
56
$(TOP ) /lib/CMSIS_5/CMSIS/Core/Include \
57
57
$(TOP ) /$(ST_CMSIS ) /Include \
58
58
$(TOP ) /$(ST_HAL_DRIVER ) /Inc
59
+
60
+ # Startup
61
+ SRC_S_GCC += $(ST_CMSIS ) /Source/Templates/gcc/startup_$(MCU_VARIANT ) .s
62
+ SRC_S_IAR += $(ST_CMSIS ) /Source/Templates/iar/startup_$(MCU_VARIANT ) .s
63
+
64
+ # Linker
65
+ LD_FILE_IAR = $(ST_CMSIS ) /Source/Templates/iar/linker/$(MCU_VARIANT ) _flash.icf
You can’t perform that action at this time.
0 commit comments