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.

1 ACCEPTED SOLUTION

Accepted Solutions
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".

View solution in original post

11 REPLIES 11
STea
ST Employee

Hello @Mickey_Piper ,

After checking some of your paths seems like some of them have spaces in you path like this one :

C:/Users/a.e/Desktop/STM32 Workspace/Thread_FTD/Debug/../STM32_WPAN/App/app_thread.c:242: undefined reference to `otInstanceErasePersistentInfo'
##"STM32 Workspace" eliminate this spacing##

Hope this resolves your issue .

BR

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Mickey_Piper
Associate III

Hi @STea ,

Thank you for your reply. I tried your solution but it didn't worked. You can find my logs link below:

https://codeshare.io/qPjJqj 

STea
ST Employee

Hello @Mickey_Piper ,

Did you try to add the missing files into the src and inc folders if this resolves the issue then you have some problems with your paths it will help if i could have a version of your code to try and resolve the issue .

BR 

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi @STea ,

There are no missing files.

Mickey_Piper_0-1703673445370.png

As you can see, all files already inside the folders but my projects doesn't see them.

Mickey_Piper_1-1703673541840.pngMickey_Piper_2-1703673555984.png

I think that my paths and source locations are also correct too and I didn't write a code or change any code in my files. I just create my project and configure my IOC file.

Just what i would do:

- in file with "missing..." , first i see in log: app_entry.c -> right click mouse -> search text -> project

- then you can find in search result, which xx.h has this ... , then try to include it.

I had similar problem and need to include in main.c :

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include <stdio.h>
#include <ux_api.h>

/* USER CODE END Includes */

( this just as example - you have to find out, whats missing in your project ! )

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

Hi @AScha.3 ,

Thank you for your response. Actually I follow the .h files that include missing functions and I saw that all necessary libraries already included so I thought this is not a problem.

For example this error:

C:/Users/a.e/Desktop/STM32Workspace/Thread_FTD/Debug/../STM32_WPAN/Target/hw_ipcc.c:423: undefined reference to `HW_IPCC_THREAD_CliEvtNot'

 

 

This error says it cannot find "HW_IPCC_THREAD_CliEvtNot" function in "hw_ipcc.c". I follow the function and find it in "hw.h" file. When I check the "hw_ipcc.c" file I found this includes:

 

/* Includes ------------------------------------------------------------------*/
#include "app_common.h"
#include "mbox_def.h"

 

and inside the "app_common.h" library it included this library:

 

#include "app_conf.h"

 

and "app_conf.h" file have this libraries:

 

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef APP_CONF_H
#define APP_CONF_H

#include "hw.h"
#include "hw_conf.h"
#include "hw_if.h"

 

so as you can see the necessary library already included.

Best regards.

TDK
Guru

Where is HW_IPCC_THREAD_CliEvtNot defined? Not declared, but defined? You need to ensure that file is being compiled. Typically the definition is in a *.c file and the declaration is in a *.h file.

This is not an include file issue, or the error would be during compilation, not linking. You are seeing linker error.

 

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

Hi @TDK ,

I understand you and I check the definition of functions. For the previous example I mentioned, the function declaration in "hw.h" file. I check the files and found the definition in "tl_mbox.c" file in Middlewares -> ST -> STM32_WPAN -> interface -> patterns -> ble_thread -> tl folder. I check my folders and found the "tl_mbox.c" file in exact folder as you can see below:

Mickey_Piper_0-1703743944056.png

and check my Paths and Sources again. Found that it already included:

Mickey_Piper_1-1703744033318.png

Best regards.

Mickey_Piper
Associate III

I tried create project with same settings by using STM32CubeMX but errors still occurs.