cancel
Showing results for 
Search instead for 
Did you mean: 

undefined reference to `SEGGER_RTT_ASM_WriteSkipNoLock'

chaithu
Associate II

Hi,

i am trying to port FreeRTOS to my STM32L152RCT6.
i did it successfully.
but when i am trying use segger debug tool.
i am facing issue like this

 

 

18:09:25 **** Incremental Build of configuration Debug for project freertosporting ****
make -j4 all 
arm-none-eabi-gcc "../SEGGER/SEGGER/SEGGER_RTT.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32L152xC -c -I../Core/Inc -I../Drivers/STM32L1xx_HAL_Driver/Inc -I../Drivers/STM32L1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32L1xx/Include -I../Drivers/CMSIS/Include -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/FreeRTOS/Source/include" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/FreeRTOS/Source/portable/GCC/ARM_CM3" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/FreeRTOS/Source/portable/MemMang" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/FreeRTOS" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/SEGGER/Config" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/SEGGER/OS" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/SEGGER/SEGGER" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/FreeRTOS/org/Source/portable/GCC/ARM_CM3" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/FreeRTOS/org/Source/portable/MemMang" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"SEGGER/SEGGER/SEGGER_RTT.d" -MT"SEGGER/SEGGER/SEGGER_RTT.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "SEGGER/SEGGER/SEGGER_RTT.o"
arm-none-eabi-gcc "../SEGGER/SEGGER/SEGGER_SYSVIEW.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32L152xC -c -I../Core/Inc -I../Drivers/STM32L1xx_HAL_Driver/Inc -I../Drivers/STM32L1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32L1xx/Include -I../Drivers/CMSIS/Include -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/FreeRTOS/Source/include" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/FreeRTOS/Source/portable/GCC/ARM_CM3" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/FreeRTOS/Source/portable/MemMang" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/FreeRTOS" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/SEGGER/Config" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/SEGGER/OS" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/SEGGER/SEGGER" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/FreeRTOS/org/Source/portable/GCC/ARM_CM3" -I"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/FreeRTOS/org/Source/portable/MemMang" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"SEGGER/SEGGER/SEGGER_SYSVIEW.d" -MT"SEGGER/SEGGER/SEGGER_SYSVIEW.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "SEGGER/SEGGER/SEGGER_SYSVIEW.o"
arm-none-eabi-gcc -o "freertosporting.elf" @"objects.list"   -mcpu=cortex-m3 -T"/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/STM32L152RCTX_FLASH.ld" --specs=nosys.specs -Wl,-Map="freertosporting.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
/opt/st/stm32cubeide_1.16.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.linux64_1.0.200.202406132123/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld: ./SEGGER/SEGGER/SEGGER_SYSVIEW.o: in function `_TrySendOverflowPacket':
/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/Debug/../SEGGER/SEGGER/SEGGER_SYSVIEW.c:662: undefined reference to `SEGGER_RTT_ASM_WriteSkipNoLock'
/opt/st/stm32cubeide_1.16.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.linux64_1.0.200.202406132123/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld: ./SEGGER/SEGGER/SEGGER_SYSVIEW.o: in function `_SendPacket':
/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/Debug/../SEGGER/SEGGER/SEGGER_SYSVIEW.c:894: undefined reference to `SEGGER_RTT_ASM_WriteSkipNoLock'
/opt/st/stm32cubeide_1.16.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.linux64_1.0.200.202406132123/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld: ./SEGGER/SEGGER/SEGGER_SYSVIEW.o: in function `SEGGER_SYSVIEW_Start':
/home/admin1/STM32CubeIDE/workspace_1.16.0/freertosporting/Debug/../SEGGER/SEGGER/SEGGER_SYSVIEW.c:1873: undefined reference to `SEGGER_RTT_ASM_WriteSkipNoLock'
collect2: error: ld returned 1 exit status
make: *** [makefile:70: freertosporting.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.

18:09:25 Build Failed. 4 errors, 0 warnings. (took 496ms)

 

 

please vefity once where i am missing the code.

thanks in advance.

3 REPLIES 3
Andrew Neil
Evangelist III

As it says, you don't have any definition for SEGGER_RTT_ASM_WriteSkipNoLock

Did you omit to include the Segger RTT source or library?

chaithu
Associate II

no i have included Segger source 

still its giving same.

if you don't mind could  you  verify whether I have a definition or not since I am new to FrreeRTOS concepts for debugging.

 

 

Thanks in Advance. 

no, I have included Segger's source 

still it's giving the same.

if you don't mind could you verify whether I have a definition since I am new to FrreeRTOS concepts for debugging.

 

 

I appreciate any help you can provide.