diff --git a/soc/arm/infineon_cat1/psoc6/CMakeLists.txt b/soc/arm/infineon_cat1/psoc6/CMakeLists.txt index 078ca16c23b..2279c35b2d9 100644 --- a/soc/arm/infineon_cat1/psoc6/CMakeLists.txt +++ b/soc/arm/infineon_cat1/psoc6/CMakeLists.txt @@ -13,3 +13,5 @@ zephyr_linker_sources_ifdef(CONFIG_SOC_FAMILY_INFINEON_CAT1A ROM_START SORT_KEY # Add section for cm0p image RAM zephyr_linker_sources_ifdef(CONFIG_SOC_FAMILY_INFINEON_CAT1A RAM_SECTIONS SORT_KEY 0 ram_cm0image.ld) + +zephyr_linker_sources_ifdef(CONFIG_SOC_FAMILY_INFINEON_CAT1A RAMFUNC_SECTION SORT_KEY 0 ram_func.ld) diff --git a/soc/arm/infineon_cat1/psoc6/ram_func.ld b/soc/arm/infineon_cat1/psoc6/ram_func.ld new file mode 100644 index 00000000000..6d9d1a080dd --- /dev/null +++ b/soc/arm/infineon_cat1/psoc6/ram_func.ld @@ -0,0 +1,5 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + */ + +KEEP(*(.cy_ramfunc))