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:
parent
101e1ee3c1
commit
1876f60f9f
@ -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()
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user