Hello Team,
I am working on S32K116 micro which is Cortex M0+ core. After Integration of FreeRTOS(V10.3.1), I have modified the handlers to call the functions in startup_S32K116.s file as below.
PUBWEAK SVC_Handler
SECTION .text:CODE:REORDER:NOROOT(1)
SVC_Handler
B vPortSVCHandler
PUBWEAK PendSV_Handler
SECTION .text:CODE:REORDER:NOROOT(1)
PendSV_Handler
B xPortPendSVHandler
PUBWEAK SysTick_Handler
SECTION .text:CODE:REORDER:NOROOT(1)
SysTick_Handler
B xPortSysTickHandler
During the compilation process, I got linker error (LP002: relocation failed: value out of range or illegal) for the function “xPortSysTickHandler”.
Then I saw FreeRTOS FAQs and added below macro in the “FreeRTOSConfig.h” file.
#define xPortSysTickHandler SysTick_Handler
Now I am able to compile and link the files. But while debugging the code with a deugger, I have observed that after a reset, control is not going to reset handler and thus main functio is not executing. It is going to “prvIdleTask()” function after reset. Please suggest if I am missing any thing in the code. Also, please explain why I am geting the linker error before I have added the #define macro.
Regards,
Shashidhar