RA MCU使用e2studio和GCC编译器,如何将函数放在RAM中,并运行。
请参考以下代码:
/* Place code in the .ram section to flash it during programming. */
#define PLACE_IN_RAM_SECTION __attribute__((noinline)) BSP_PLACE_IN_SECTION(".code_in_ram")
static void r_ram_example_function(void) PLACE_IN_RAM_SECTION;