2020-11-05 06:03 AM
I am a new user of STM32CubeIDE using a NUCLEO-STM32WB-Nucleo board. I want to build an empty project using enabled BLE components using the STM32-WPAN pack version 1.9.0.
After selectint RTC, HSEM and RF1 in addition to the default settings plus enabling the WPAN middleware (all default) it autocreates the code files. When I build the project I can reproducibly get the following error:
arm-none-eabi-gcc "../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/shci/shci.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DDEBUG -DSTM32WB55xx -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../Utilities/lpm/tiny_lpm -I../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../Middlewares/ST/STM32_WPAN/ble/core -I../Middlewares/ST/STM32_WPAN/ble/core/auto -I../Middlewares/ST/STM32_WPAN/ble/core/template -I../Middlewares/ST/STM32_WPAN/ble/svc/Inc -I../Middlewares/ST/STM32_WPAN/ble/svc/Src -I../Utilities/sequencer -I../Middlewares/ST/STM32_WPAN/ble -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/shci/shci.d" -MT"Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/shci/shci.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/shci/shci.o"
arm-none-eabi-gcc "../Middlewares/ST/STM32_WPAN/ble/svc/Src/dis.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DDEBUG -DSTM32WB55xx -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../Utilities/lpm/tiny_lpm -I../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../Middlewares/ST/STM32_WPAN/ble/core -I../Middlewares/ST/STM32_WPAN/ble/core/auto -I../Middlewares/ST/STM32_WPAN/ble/core/template -I../Middlewares/ST/STM32_WPAN/ble/svc/Inc -I../Middlewares/ST/STM32_WPAN/ble/svc/Src -I../Utilities/sequencer -I../Middlewares/ST/STM32_WPAN/ble -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Middlewares/ST/STM32_WPAN/ble/svc/Src/dis.d" -MT"Middlewares/ST/STM32_WPAN/ble/svc/Src/dis.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Middlewares/ST/STM32_WPAN/ble/svc/Src/dis.o"
arm-none-eabi-gcc "../Middlewares/ST/STM32_WPAN/ble/svc/Src/hts.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DDEBUG -DSTM32WB55xx -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../Utilities/lpm/tiny_lpm -I../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../Middlewares/ST/STM32_WPAN/ble/core -I../Middlewares/ST/STM32_WPAN/ble/core/auto -I../Middlewares/ST/STM32_WPAN/ble/core/template -I../Middlewares/ST/STM32_WPAN/ble/svc/Inc -I../Middlewares/ST/STM32_WPAN/ble/svc/Src -I../Utilities/sequencer -I../Middlewares/ST/STM32_WPAN/ble -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Middlewares/ST/STM32_WPAN/ble/svc/Src/hts.d" -MT"Middlewares/ST/STM32_WPAN/ble/svc/Src/hts.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Middlewares/ST/STM32_WPAN/ble/svc/Src/hts.o"
../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl/tl_mbox.c:28:10: fatal error: tl_dbg_conf.h: No such file or directory
#include "tl_dbg_conf.h"
^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl/subdir.mk:38: Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl/tl_mbox.o] Error 1
make: *** Waiting for unfinished jobs....
"make -j4 all" terminated with exit code 2. Build might be incomplete.
The file seems to be present in this directory
<USER_HOME>\STM32Cube\Repository\STM32Cube_FW_WB_V1.9.0\Middlewares\ST\STM32_WPAN\interface\patterns\ble_thread\tl
and it seems that path is in the INCLUDE paths of my project...?
Which is the very same directory where tl_mbox.c fails to compile.
Why isn't the .h file found?
Solved! Go to Solution.
2020-11-06 12:42 AM
Dear @Community member ,
You are right. the copy all used ... is not supported for cube IDE.
Your issue is now fixed (with copy only ... option) and the fix will be available in the next cubeIDE/MX release.
Thanks your raising this issue, we are deeply sorry for any inconvenience this may have caused.
Kind regards,
Houssem
2020-11-05 06:15 AM
Dear @Community member
Thank you for your feedback.
Could you share your IOC file ?
Best regards
Houssem
2020-11-05 06:24 AM
I was able to manually fixing the problem by adding the very same include path once again but this time as a fully qualified path starting with C:\Users\...
I noticed that the bottom of the include path dialog (see above) mentions "Using relative paths is ambiguous and not recommended..." - which seemed to have cause the problem here. Yet all the other include paths apparently work as expected. So I'd still like to understand what the root cause is here, because using path relative to my workspace should work, right? Am I missing a system environment variable maybe?
2020-11-05 07:26 AM
Dear @Houssem CHAABANI ,
yes ofc! I just generated a brand new project:
New STM Project -> Initialize all peripherals with default? -> Yes
System Core -> HSEM -> Activated
Timers -> RTC -> Activate Clock Source
Connectivity -> RF -> Activate RF1
Middleware -> STM32_WPAN -> BLE
Save -> Do you want to generate code? -> Yes
Same error.
IOC File attached.
2020-11-05 08:13 AM
Dear @Community member
Thank you for sharing
Please select copy all used libraries into the project folder under project manager .
This will resolve your issue.
Thank you !
Houssem
2020-11-05 08:56 AM
Dear Houssem,
you mean that one here?
It seems I cannot select it? This dialog appeared right after the "New-> New STM32 Project"
2020-11-06 12:42 AM
Dear @Community member ,
You are right. the copy all used ... is not supported for cube IDE.
Your issue is now fixed (with copy only ... option) and the fix will be available in the next cubeIDE/MX release.
Thanks your raising this issue, we are deeply sorry for any inconvenience this may have caused.
Kind regards,
Houssem