Hello ,
You can create your own linker file (user.ld) and use __attribute__
__attribute__ ((section (".codeinram"))) void gotoStandbyMode(void) {
WKUP.WISR.R = 0x00000008; //Clear interrupt flag
if ((ME.GS.B.S_CURRENTMODE < SPC5_RUNMODE_RUN3)
|| (ME.GS.B.S_CURRENTMODE > SPC5_RUNMODE_RUN0)) {
if (OSAL_FAILED == halSPCSetRunMode(SPC5_RUNMODE_STANDBY)) {
SPC5_CLOCK_FAILURE_HOOK();
}
}
}
__attribute__ ((section (".codeinram"))) void gotoRunMode(void)
{
if (OSAL_FAILED == halSPCSetRunMode(SPC5_RUNMODE_DRUN)) {
SPC5_CLOCK_FAILURE_HOOK();
}
}
Best Regards
Erwan
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.