Skip to content

Commit 0cdd997

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 .ram_from_flash section to .ramfunc for r_flash_lp Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 3bcdea1 commit 0cdd997

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/ra/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ 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`
54+
* Change the section to place code in ram from `.ram_from_flash` to `.ramfunc`
5555
Impacted files:
5656
drivers/ra/fsp/inc/instances/r_flash_hp.h
5757
drivers/ra/fsp/inc/instances/r_flash_lp.h

drivers/ra/fsp/inc/instances/r_flash_lp.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 code flash functions must execute out of RAM. */
3232
#if (FLASH_LP_CFG_CODE_FLASH_PROGRAMMING_ENABLE == 1)
3333
#if defined(__ICCARM__)
34-
#pragma section=".ram_from_flash"
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(".ram_from_flash")
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(".ram_from_flash")
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)