Skip to content

Commit 5320676

Browse files
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 c721e18 commit 5320676

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)