Skip to content

Commit 1876f60

Browse files
ttmutfabiobaltieri
authored andcommitted
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 <[email protected]>
1 parent 101e1ee commit 1876f60

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

soc/adi/max32/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ zephyr_sources(soc.c)
88
zephyr_library_sources_ifdef(CONFIG_CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS mpu_regions.c)
99

1010
zephyr_library_sources_ifdef(CONFIG_PM power.c)
11-
zephyr_linker_sources_ifdef(CONFIG_SOC_FLASH_MAX32 SECTIONS flash.ld)
11+
zephyr_linker_sources_ifdef(CONFIG_SOC_FLASH_MAX32 RAMFUNC_SECTION flash.ld)
1212
if(CONFIG_SOC_MAX78000 OR CONFIG_SOC_MAX78002)
1313
zephyr_linker_sources(SECTIONS max7800x.ld)
1414
endif()

soc/adi/max32/flash.ld

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
/*
2-
* Copyright (c) 2023 Analog Devices, Inc.
2+
* Copyright (c) 2023-2025 Analog Devices, Inc.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
SECTION_DATA_PROLOGUE(.flashprog,, SUBALIGN(4))
8-
{
9-
KEEP(*(.flashprog*)) /* Flash program */
10-
}
7+
KEEP(*(.flashprog*)) /* Flash program */

0 commit comments

Comments
 (0)