File tree 1 file changed +7
-3
lines changed
bsp/stm32/stm32h743-st-nucleo/board
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
import rtconfig
2
2
from building import *
3
3
4
+ Import ('SDK_LIB' )
5
+
4
6
cwd = GetCurrentDir ()
5
7
6
8
# add the general drivers.
@@ -10,12 +12,14 @@ src += Glob('CubeMX_Config/Src/stm32h7xx_hal_msp.c')
10
12
path = [cwd ]
11
13
path += [cwd + '/CubeMX_Config/Inc' ]
12
14
15
+ startup_path_prefix = SDK_LIB
16
+
13
17
if rtconfig .CROSS_TOOL == 'gcc' :
14
- src += [cwd + '/../../libraries/ STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h743xx .s' ]
18
+ src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h747xx .s' ]
15
19
elif rtconfig .CROSS_TOOL == 'keil' :
16
- src += [cwd + '/../../libraries/ STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h743xx .s' ]
20
+ src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h747xx .s' ]
17
21
elif rtconfig .CROSS_TOOL == 'iar' :
18
- src += [cwd + '/../../libraries/ STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h743xx .s' ]
22
+ src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h747xx .s' ]
19
23
20
24
# STM32H743xx || STM32H750xx || STM32F753xx
21
25
# You can select chips from the list above
You can’t perform that action at this time.
0 commit comments