Skip to content

Commit e59b2c4

Browse files
committed
Fix N6 build
Signed-off-by: Zixun LI <[email protected]>
1 parent 5130850 commit e59b2c4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/build_system/cmake/cpu/cortex-m55.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ elseif (TOOLCHAIN STREQUAL "clang")
1313
--target=arm-none-eabi
1414
-mcpu=cortex-m55
1515
-mfpu=fpv5-d16
16+
-mcmse
1617
)
1718
set(FREERTOS_PORT GCC_ARM_CM55_NTZ_NONSECURE CACHE INTERNAL "")
1819

1920
elseif (TOOLCHAIN STREQUAL "iar")
2021
set(TOOLCHAIN_COMMON_FLAGS
2122
--cpu cortex-m55
2223
--fpu VFPv5_D16
24+
--cmse
2325
)
2426
set(FREERTOS_PORT IAR_ARM_CM55_NTZ_NONSECURE CACHE INTERNAL "")
2527

hw/bsp/stm32n6/family.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ function(add_board_target BOARD_TARGET)
5252
set(STARTUP_FILE_IAR ${ST_CMSIS}/Source/Templates/iar/startup_${MCU_VARIANT}.s)
5353

5454
if(NOT DEFINED LD_FILE_GNU)
55-
set(LD_FILE_GNU ${ST_CMSIS}/Source/Templates/gcc/linker/${MCU_VARIANT}_flash.ld)
55+
set(LD_FILE_GNU ${ST_CMSIS}/Source/Templates/gcc/linker/${MCU_VARIANT}_axisram2_fsbl.ld)
5656
endif()
5757
set(LD_FILE_Clang ${LD_FILE_GNU})
5858
if(NOT DEFINED LD_FILE_IAR)
59-
set(LD_FILE_IAR ${ST_CMSIS}/Source/Templates/iar/linker/${MCU_VARIANT}_flash.icf)
59+
set(LD_FILE_IAR ${ST_CMSIS}/Source/Templates/iar/linker/${MCU_VARIANT}_axisram2_fsbl.icf)
6060
endif()
6161

6262
add_library(${BOARD_TARGET} STATIC

0 commit comments

Comments
 (0)