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:
@@ -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 "")
|
||||
|
||||
8
soc/ambiq/apollo5x/hal_internal.ld
Normal file
8
soc/ambiq/apollo5x/hal_internal.ld
Normal 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
|
||||
Reference in New Issue
Block a user