Skip to content

Commit

Permalink
hal: renesas: ra: modify BSP_PLACE_IN_SECTION to .ramfunc section
Browse files Browse the repository at this point in the history
Move the place to store bsp from .code_in_ram section to .ramfunc

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
  • Loading branch information
khoa-nguyen-18 authored and KhiemNguyenT committed Dec 27, 2024
1 parent f3a4450 commit 64fce2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions drivers/ra/README
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions drivers/ra/fsp/inc/instances/r_flash_hp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64fce2e

Please sign in to comment.