Triple checked that I applied the patch correctly, tried with several applications, but I always get the same similar compile errors:
../freertos/freertos_kernel/portable/GCC/ARM_CM4F/port.c:506: undefined reference to SEGGER_SYSVIEW_RecordEnterISR’`
But I’m not getting why it doesn’t find these functions.
The above error comes from the function call traceISR_ENTER() and finds SEGGER_SYSVIEW_RecordEnterISR correctly inSEGGER_SYSVIEW_FreeRTOS.h. In turn, this file includes SEGGER_SYSVIEW.h and implementation SEGGER_SYSVIEW.c, which are in the include path…
Did anybody have a similar error?
Any idea what I might be doing wrong?
Besides the correct include paths you also have to add the SEGGER source files to your compiler source file list i.e. the list of source (.c/.cpp) files to compile.
Source files - A list of.c files that are compiled by the compiler.
Include search paths - A list of directories where the compiler searches for header files.
As pointed by @hs2, You are not compiling the SEGGER source files in you MCUXpresso IDE project. Right click on your project and then click New --> Source File and then select SEGGER source file(s).