2025-03-05 10:18 PM - edited 2025-03-05 10:20 PM
Hi i am using Nucleo F207ZG EVK and i wanted to Make use of the Segger System view Tool
1. While using system view tool i have added the required files to the existing project but still some errors are occurred while running
2. I have attached image please go through this and let me know is there any ref doc for the Segger System View Tool with STM32
3. The code is without FreeRTOS
4. Let me know is there any other settings to be added or ref example
5. i Have included the paths in the compiler settings also
Errors
C:/ST/STM32CubeIDE_1.16.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/SEGGER_SYSVIEW.o: in function `_TrySendOverflowPacket':
D:/Projects/Internal Project/Stm32_Firmware/STMF207ZG_Limit_Switch/Debug/../Core/Src/SEGGER_SYSVIEW.c:664: undefined reference to `SEGGER_RTT_ASM_WriteSkipNoLock'
C:/ST/STM32CubeIDE_1.16.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/SEGGER_SYSVIEW.o: in function `_SendPacket':
D:/Projects/Internal Project/Stm32_Firmware/STMF207ZG_Limit_Switch/Debug/../Core/Src/SEGGER_SYSVIEW.c:896: undefined reference to `SEGGER_RTT_ASM_WriteSkipNoLock'
C:/ST/STM32CubeIDE_1.16.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/SEGGER_SYSVIEW.o: in function `SEGGER_SYSVIEW_Start':
D:/Projects/Internal Project/Stm32_Firmware/STMF207ZG_Limit_Switch/Debug/../Core/Src/SEGGER_SYSVIEW.c:1869: undefined reference to `SEGGER_RTT_ASM_WriteSkipNoLock'
C:/ST/STM32CubeIDE_1.16.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/main.o: in function `main':
D:/Projects/Internal Project/Stm32_Firmware/STMF207ZG_Limit_Switch/Debug/../Core/Src/main.c:109: undefined reference to `SEGGER_SYSVIEW_Conf'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:70: limit switch f207zg.elf] Error 1
2025-03-05 11:24 PM
I haven't tried System View, but the Segger website says the following:
> SystemView operates by integrating a small software module, containing SystemView and RTT, into the target system. This module collects event data, formats it, and passes it to the RTT module.
I think you might need to read the full documentation.
But usually, this "integrating a small software module" comes in form of a link library you need to add to your project. The linker errors you get suggest this, too.
As a side note, Segger has it's own forum on <forum.segger.com>.
Specific questions have a better chance to be answered there.