# FreeRTOS 10.5.1 - SystemView Integration

**URL:** <https://forums.freertos.org/t/freertos-10-5-1-systemview-integration/19271>\
**Category:** Kernel\
**Created:** [February 26, 2024, 6:38pm UTC](https://forums.freertos.org/t/freertos-10-5-1-systemview-integration/19271 "2024-02-26T18:38:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bena](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@bena](https://forums.freertos.org/u/bena)\
**Post date:** [February 26, 2024, 6:38pm UTC](https://forums.freertos.org/t/freertos-10-5-1-systemview-integration/19271/1 "2024-02-26T18:38:52Z")

</div>

Hi all,

I’m having trouble with integrating SystemView with my existing application and I’m hoping that somebody can point me my probably stupid mistake.

I followed the guidelines defined right [here](https://wiki.segger.com/FreeRTOS_with_SystemView).

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 in`SEGGER_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?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![hs2](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@hs2](https://forums.freertos.org/u/hs2)\
**Post date:** [February 26, 2024, 8:12pm UTC](https://forums.freertos.org/t/freertos-10-5-1-systemview-integration/19271/2 "2024-02-26T20:12:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kstribrn](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/kstribrn/32/6511_2.png) [@kstribrn](https://forums.freertos.org/u/kstribrn)\
**Post date:** [February 26, 2024, 10:00pm UTC](https://forums.freertos.org/t/freertos-10-5-1-systemview-integration/19271/3 "2024-02-26T22:00:50Z")

</div>

Hartmut is correct. How you include this is dependent on your build system. How are you building your application?

---

<div class="post-metadata">

**Author:** ![bena](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@bena](https://forums.freertos.org/u/bena)\
**Post date:** [February 27, 2024, 8:20am UTC](https://forums.freertos.org/t/freertos-10-5-1-systemview-integration/19271/4 "2024-02-27T08:20:18Z")

</div>

Hi guys,

Thank you for the input.  
I’m building it with MCUXpresso, using the include paths:

- segger/SystemView/Config
- segger/SystemView/SEGGER
- segger/SystemView/Sample/FreeRTOSV10.4

 ![image](https://d2v6vdsk2p900z.cloudfront.net/original/2X/8/892139a5cbde0124c9b2f07de707a79e2e5b74ba.png)

Which contains the SEGGER code for my installation of SystemView.

So I should also add all these SEGGER files to **Include files (-include)**? I’ll give this a whirl shortly.

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [February 27, 2024, 12:19pm UTC](https://forums.freertos.org/t/freertos-10-5-1-systemview-integration/19271/5 "2024-02-27T12:19:34Z")

</div>

In any build system, there are 2 things -

1. Source files - A list of`.c` files that are compiled by the compiler.
2. 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).

---

<div class="post-metadata">

**Author:** ![carlosleitao17](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/carlosleitao17/32/4577_2.png) [@carlosleitao17](https://forums.freertos.org/u/carlosleitao17)\
**Post date:** [May 21, 2024, 2:42pm UTC](https://forums.freertos.org/t/freertos-10-5-1-systemview-integration/19271/6 "2024-05-21T14:42:50Z")

</div>

Hi, don’t know if you solved the issue already. If you had all the correct #include files try to link with -m flag

C.
