soc: ambiq: define itcm_text for apollo5x

Define itcm_text in hal_internal.ld for apollo5x

Signed-off-by: Hao Luo <hluo@ambiq.com>
This commit is contained in:
Hao Luo
2025-10-17 11:18:47 +08:00
committed by Johan Hedberg
parent 5026d81014
commit a1954bad80
2 changed files with 12 additions and 0 deletions

View File

@@ -10,4 +10,8 @@ zephyr_include_directories(${ZEPHYR_BASE}/soc/arm/common/cortex_m)
zephyr_linker_sources(SECTIONS shared_ram.ld)
if(CONFIG_SOC_APOLLO510)
zephyr_linker_sources(ITCM_SECTION hal_internal.ld)
endif()
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")

View File

@@ -0,0 +1,8 @@
/*
* Copyright (c) 2025 Ambiq Micro Inc. <www.ambiq.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#if defined(CONFIG_SOC_APOLLO510)
*(.itcm_text)
#endif