Skip to content

Commit 17833c9

Browse files
authored
Merge pull request #5144 from liukangcc/stm32h750
[update] fix stm32h750-artpi-h750 工程执行 scons --dist 后无法编译
2 parents 907d948 + c7d52a4 commit 17833c9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

bsp/stm32/stm32h750-artpi-h750/board/SConscript

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import os
22
import rtconfig
33
from building import *
44

5+
Import('SDK_LIB')
6+
57
objs = []
68
cwd = GetCurrentDir()
79
list = os.listdir(cwd)
@@ -43,12 +45,14 @@ path = [cwd]
4345
path += [cwd + '/CubeMX_Config/Core/Inc']
4446
path += [cwd + '/port']
4547

48+
startup_path_prefix = SDK_LIB
49+
4650
if rtconfig.CROSS_TOOL == 'gcc':
47-
src += [cwd + '/../../libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h750xx.s']
51+
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h750xx.s']
4852
elif rtconfig.CROSS_TOOL == 'keil':
49-
src += [cwd + '/../../libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h750xx.s']
53+
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h750xx.s']
5054
elif rtconfig.CROSS_TOOL == 'iar':
51-
src += [cwd + '/../../libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h750xx.s']
55+
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h750xx.s']
5256

5357
# STM32H743xx || STM32H750xx || STM32F753xx
5458
# You can select chips from the list above

0 commit comments

Comments
 (0)