Skip to content

Commit d02669b

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 8b15b11 commit d02669b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

drivers/ra/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Patch List:
5555
Impacted files:
5656
drivers/ra/fsp/inc/instances/r_flash_hp.h
5757
drivers/ra/fsp/inc/instances/r_flash_lp.h
58+
drivers/ra/fsp/inc/instances/r_mram.h
5859

5960
* Add SCB_CleanInvalidateDCache() for flash hp when using DCACHE
6061
Impacted files:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ FSP_HEADER
2828

2929
/* If Code Flash programming is enabled, then all API functions must execute out of RAM. */
3030
#if defined(__ICCARM__)
31-
#pragma section=".ram_from_flash"
31+
#pragma section=".ramfunc"
3232
#endif
3333
#if defined(__ARMCC_VERSION) || defined(__GNUC__)
34-
#define PLACE_IN_RAM_SECTION __attribute__((noinline)) BSP_PLACE_IN_SECTION(".ram_from_flash")
34+
#define PLACE_IN_RAM_SECTION __attribute__((noinline)) BSP_PLACE_IN_SECTION(".ramfunc")
3535
#else
36-
#define PLACE_IN_RAM_SECTION BSP_PLACE_IN_SECTION(".ram_from_flash")
36+
#define PLACE_IN_RAM_SECTION BSP_PLACE_IN_SECTION(".ramfunc")
3737
#endif
3838

3939
/***********************************************************************************************************************

0 commit comments

Comments
 (0)