Skip to content

Commit 741a0f4

Browse files
committed
[bsp][stm32] update stm32h743-st-nucleo/board/SConscript to fix compiling error after dist
1 parent 4f674ef commit 741a0f4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

bsp/stm32/stm32h743-st-nucleo/board/SConscript

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import rtconfig
22
from building import *
33

4+
Import('SDK_LIB')
5+
46
cwd = GetCurrentDir()
57

68
# add the general drivers.
@@ -10,12 +12,14 @@ src += Glob('CubeMX_Config/Src/stm32h7xx_hal_msp.c')
1012
path = [cwd]
1113
path += [cwd + '/CubeMX_Config/Inc']
1214

15+
startup_path_prefix = SDK_LIB
16+
1317
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']
1519
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']
1721
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']
1923

2024
# STM32H743xx || STM32H750xx || STM32F753xx
2125
# You can select chips from the list above

0 commit comments

Comments
 (0)