Skip to content

Commit 64fce2e

Browse files
khoa-nguyen-18KhiemNguyenT
authored andcommitted
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 <[email protected]>
1 parent f3a4450 commit 64fce2e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

drivers/ra/README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ Patch List:
5151
Impacted files:
5252
drivers/ra/fsp/src/r_flash_hp/r_flash_hp.c
5353

54+
* Change the section to place code in ram from `.code_in_ram` to `.ramfunc`
55+
Impacted files:
56+
drivers/ra/fsp/inc/instances/r_flash_hp.h
57+
5458
* Allows custom implementation of option setting memory
5559
Impacted files:
5660
drivers/ra/fsp/src/bsp/mcu/all/bsp_rom_registers.c

drivers/ra/fsp/inc/instances/r_flash_hp.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ FSP_HEADER
3131
/* If Code Flash programming is enabled, then all API functions must execute out of RAM. */
3232
#if (FLASH_HP_CFG_CODE_FLASH_PROGRAMMING_ENABLE == 1)
3333
#if defined(__ICCARM__)
34-
#pragma section=".code_in_ram"
34+
#pragma section=".ramfunc"
3535
#endif
3636
#if defined(__ARMCC_VERSION) || defined(__GNUC__)
37-
#define PLACE_IN_RAM_SECTION __attribute__((noinline)) BSP_PLACE_IN_SECTION(".code_in_ram")
37+
#define PLACE_IN_RAM_SECTION __attribute__((noinline)) BSP_PLACE_IN_SECTION(".ramfunc")
3838
#else
39-
#define PLACE_IN_RAM_SECTION BSP_PLACE_IN_SECTION(".code_in_ram")
39+
#define PLACE_IN_RAM_SECTION BSP_PLACE_IN_SECTION(".ramfunc")
4040
#endif
4141
#else
4242
#define PLACE_IN_RAM_SECTION

0 commit comments

Comments
 (0)