soc: adi: max32: Move .flashprog into RAMFUNC section

Move functions in .flashprog section into RAMFUNC so that they can be
executed from SRAM.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
This commit is contained in:
Tahsin Mutlugun 2025-04-07 15:10:13 +03:00 committed by Fabio Baltieri
parent 101e1ee3c1
commit 1876f60f9f
2 changed files with 3 additions and 6 deletions

View File

@ -8,7 +8,7 @@ zephyr_sources(soc.c)
zephyr_library_sources_ifdef(CONFIG_CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS mpu_regions.c)
zephyr_library_sources_ifdef(CONFIG_PM power.c)
zephyr_linker_sources_ifdef(CONFIG_SOC_FLASH_MAX32 SECTIONS flash.ld)
zephyr_linker_sources_ifdef(CONFIG_SOC_FLASH_MAX32 RAMFUNC_SECTION flash.ld)
if(CONFIG_SOC_MAX78000 OR CONFIG_SOC_MAX78002)
zephyr_linker_sources(SECTIONS max7800x.ld)
endif()

View File

@ -1,10 +1,7 @@
/*
* Copyright (c) 2023 Analog Devices, Inc.
* Copyright (c) 2023-2025 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
SECTION_DATA_PROLOGUE(.flashprog,, SUBALIGN(4))
{
KEEP(*(.flashprog*)) /* Flash program */
}
KEEP(*(.flashprog*)) /* Flash program */