Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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