From 64fce2e5bd31fb7aaf16de8fbd0141a4ca23fdf8 Mon Sep 17 00:00:00 2001 From: Khoa Nguyen Date: Thu, 26 Dec 2024 16:19:30 +0700 Subject: [PATCH] hal: renesas: ra: modify BSP_PLACE_IN_SECTION to .ramfunc section Move the place to store bsp from .code_in_ram section to .ramfunc Signed-off-by: Khoa Nguyen --- drivers/ra/README | 4 ++++ drivers/ra/fsp/inc/instances/r_flash_hp.h | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/ra/README b/drivers/ra/README index 5f328a86..2b1fdfc7 100644 --- a/drivers/ra/README +++ b/drivers/ra/README @@ -51,6 +51,10 @@ Patch List: Impacted files: drivers/ra/fsp/src/r_flash_hp/r_flash_hp.c + * Change the section to place code in ram from `.code_in_ram` to `.ramfunc` + Impacted files: + drivers/ra/fsp/inc/instances/r_flash_hp.h + * Allows custom implementation of option setting memory Impacted files: drivers/ra/fsp/src/bsp/mcu/all/bsp_rom_registers.c diff --git a/drivers/ra/fsp/inc/instances/r_flash_hp.h b/drivers/ra/fsp/inc/instances/r_flash_hp.h index 7e551357..d608a23b 100644 --- a/drivers/ra/fsp/inc/instances/r_flash_hp.h +++ b/drivers/ra/fsp/inc/instances/r_flash_hp.h @@ -31,12 +31,12 @@ FSP_HEADER /* If Code Flash programming is enabled, then all API functions must execute out of RAM. */ #if (FLASH_HP_CFG_CODE_FLASH_PROGRAMMING_ENABLE == 1) #if defined(__ICCARM__) - #pragma section=".code_in_ram" + #pragma section=".ramfunc" #endif #if defined(__ARMCC_VERSION) || defined(__GNUC__) - #define PLACE_IN_RAM_SECTION __attribute__((noinline)) BSP_PLACE_IN_SECTION(".code_in_ram") + #define PLACE_IN_RAM_SECTION __attribute__((noinline)) BSP_PLACE_IN_SECTION(".ramfunc") #else - #define PLACE_IN_RAM_SECTION BSP_PLACE_IN_SECTION(".code_in_ram") + #define PLACE_IN_RAM_SECTION BSP_PLACE_IN_SECTION(".ramfunc") #endif #else #define PLACE_IN_RAM_SECTION