Skip to content

Commit 34a2200

Browse files
committed
include iar startup code
fixed bug: 'scons --target=iar -s' output iar project missing startup code, and link file 修复scons生成IAR工程中没有startup code和链接文件,导致工程中断异常和Finsh无法工作
1 parent 850343f commit 34a2200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bsp/stm32f40x/Libraries/SConscript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ if rtconfig.CROSS_TOOL == 'gcc':
1818
src = src + ['CMSIS/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f4xx.s']
1919
elif rtconfig.CROSS_TOOL == 'keil':
2020
src = src + ['CMSIS/ST/STM32F4xx/Source/Templates/arm/startup_stm32f4xx.s']
21-
# elif rtconfig.CROSS_TOOL == 'iar':
22-
# src = src + ['CMSIS/CM3/DeviceSupport/ST/STM32F10x/startup/iar/' + startup_scripts[rtconfig.STM32_TYPE]]
21+
elif rtconfig.CROSS_TOOL == 'iar':
22+
src = src + ['CMSIS/ST/STM32F4xx/Source/Templates/iar/startup_stm32f4xx.s']
2323

2424
path = [cwd + '/STM32F4xx_StdPeriph_Driver/inc',
2525
cwd + '/CMSIS/ST/STM32F4xx/Include',

0 commit comments

Comments
 (0)