cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55 Thread Undefined Reference To Errors

Mickey_Piper
Associate III

Hi,

I'm trying to debug new thread ftd project. You can find my settings below:

 

 

 

- HSEM
- IPCC
- RCC -> HSE/LSE
- SYS -> Serial wire
- RTC
- LPUART1 & LPUART1 DMA
- USART1 & USART1 DMA
- RF
- STM32_WPAN as a THREAD

 

 

 

When I debug it, It gives me a lines of errors. You can find my errors below:

 

 

 

09:29:52 **** Incremental Build of configuration Debug for project Thread_FTD ****
make -j12 all 
arm-none-eabi-gcc "../Core/Src/stm32wbxx_hal_msp.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32WB55xx '-DOPENTHREAD_CONFIG_FILE=<openthread_api_config_ftd.h>' -DTHREAD_WB -c -I../Core/Inc -I../Drivers/STM32WBxx_HAL_Driver/Inc -I../Drivers/STM32WBxx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32WBxx/Include -I../Drivers/CMSIS/Include -I../STM32_WPAN/App -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/third_party/mbedtls/repo/include -I../Utilities/lpm/tiny_lpm -I../Middlewares/ST/STM32_WPAN -I../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread -I../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl -I../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/shci -I../Middlewares/ST/STM32_WPAN/utilities -I../Utilities/sequencer -I../Middlewares/ST/STM32_WPAN/thread/openthread/core/openthread_api -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/include -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/include/openthread -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/include/openthread/platform -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/src/core -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/src/core/config -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/third_party/mbedtls -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/third_party/mbedtls/repo/include/mbedtls -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/stm32wbxx_hal_msp.d" -MT"Core/Src/stm32wbxx_hal_msp.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/stm32wbxx_hal_msp.o"
arm-none-eabi-gcc "../Core/Src/stm32wbxx_it.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32WB55xx '-DOPENTHREAD_CONFIG_FILE=<openthread_api_config_ftd.h>' -DTHREAD_WB -c -I../Core/Inc -I../Drivers/STM32WBxx_HAL_Driver/Inc -I../Drivers/STM32WBxx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32WBxx/Include -I../Drivers/CMSIS/Include -I../STM32_WPAN/App -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/third_party/mbedtls/repo/include -I../Utilities/lpm/tiny_lpm -I../Middlewares/ST/STM32_WPAN -I../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread -I../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl -I../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/shci -I../Middlewares/ST/STM32_WPAN/utilities -I../Utilities/sequencer -I../Middlewares/ST/STM32_WPAN/thread/openthread/core/openthread_api -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/include -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/include/openthread -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/include/openthread/platform -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/src/core -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/src/core/config -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/third_party/mbedtls -I../Middlewares/ST/STM32_WPAN/thread/openthread/stack/third_party/mbedtls/repo/include/mbedtls -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/stm32wbxx_it.d" -MT"Core/Src/stm32wbxx_it.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/stm32wbxx_it.o"
arm-none-eabi-gcc -o "Thread_FTD.elf" @"objects.list"   -mcpu=cortex-m4 -T"C:\Users\a.e\Desktop\STM32 Workspace\Thread_FTD\STM32WB55RGVX_FLASH.ld" --specs=nosys.specs -Wl,-Map="Thread_FTD.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/app_entry.o: in function `MX_APPE_Init':
C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:198: undefined reference to `AMM_Init'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:206: undefined reference to `LST_init_head'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:226: undefined reference to `AMM_BackgroundProcess'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/app_entry.o: in function `Config_HSE':
C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:380: undefined reference to `OTP_Read'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/app_entry.o: in function `appe_Tl_Init':
C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:449: undefined reference to `TL_Init'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:455: undefined reference to `shci_init'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:462: undefined reference to `TL_MM_Init'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:464: undefined reference to `TL_Enable'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:467: undefined reference to `shci_user_evt_proc'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/app_entry.o: in function `APPE_SysEvtReadyProcessing':
C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:529: undefined reference to `TL_TRACES_Init'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/app_entry.o: in function `ProcessTrace':
C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:704: undefined reference to `LST_remove_tail'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:709: undefined reference to `DbgTraceWrite'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:711: undefined reference to `AMM_Free'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../Core/Src/app_entry.c:701: undefined reference to `LST_is_empty'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./STM32_WPAN/App/app_thread.o: in function `APP_THREAD_Init':
C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:156: undefined reference to `SHCI_C2_THREAD_Init'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./STM32_WPAN/App/app_thread.o: in function `APP_THREAD_DeviceConfig':
C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:242: undefined reference to `otInstanceErasePersistentInfo'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:247: undefined reference to `otInstanceFinalize'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:248: undefined reference to `otInstanceInitSingle'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:249: undefined reference to `otSetStateChangedCallback'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:254: undefined reference to `otLinkSetChannel'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:259: undefined reference to `otLinkSetPanId'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:264: undefined reference to `otThreadSetNetworkKey'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:269: undefined reference to `otIp6SetEnabled'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:274: undefined reference to `otThreadSetEnabled'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./STM32_WPAN/App/app_thread.o: in function `APP_THREAD_StateNotif':
C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:303: undefined reference to `otThreadGetDeviceRole'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./STM32_WPAN/App/app_thread.o: in function `APP_THREAD_CheckWirelessFirmwareInfo':
C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:365: undefined reference to `SHCI_GetWirelessFwInfo'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./STM32_WPAN/App/app_thread.o: in function `Send_CLI_To_M0':
C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:629: undefined reference to `TL_CLI_SendCmd'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./STM32_WPAN/App/app_thread.o: in function `APP_THREAD_TL_THREAD_INIT':
C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:677: undefined reference to `TL_THREAD_Init'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./STM32_WPAN/App/app_thread.o: in function `APP_THREAD_ProcessMsgM0ToM4':
C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:734: undefined reference to `OpenThread_CallBack_Processing'
C:/ST/STM32CubeIDE_1.13.2/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./STM32_WPAN/Target/hw_ipcc.o: in function `HW_IPCC_THREAD_CliNotEvtHandler':
C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/Target/hw_ipcc.c:422: undefined reference to `HW_IPCC_THREAD_CliEvtNot'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:68: Thread_FTD.elf] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.

09:29:54 Build Failed. 44 errors, 0 warnings. (took 1s.652ms)

 

 

 

I tried enable all visibility at Project Manager -> Advanced Settings -> Generated Function Calls but it didn't work so I disabled LPUART1 and USART1 again. My clock configuration is corrent and I check every other configurations by looking the examples in STM32_WPAN Applications. I also check Properties -> Paths and Symbols -> Includes and  Properties -> Paths and Symbols -> Source Locations. All includes are applied so there is no error. How can I fix my problem?

Best regards.

11 REPLIES 11
TDK
Guru

Paths to source files (*.c) are listed in the "Source Locations" tab, not the "Includes" tab.

Typically including only the top-level directory is sufficient there, as it will crawl to subdirectories.

From your post a few up, it looks like you are missing an entry for "/FTD_Thread/Middlewares", which is where your file is located.

You could also remove them and add only "/FTD_Thread".

If you feel a post has answered your question, please click "Accept as Solution".

Hi @TDK ,

Thank your for your assistance. 


@TDK wrote:

From your post a few up, it looks like you are missing an entry for "/FTD_Thread/Middlewares", which is where your file is located


This was the problem. I added "/FTD_Thread/Middlewares" in my source and it works.

Best regards.