Skip to main content
Senior III
August 25, 2026
Solved

CubeIDE not finding headers that exist in the project

  • August 25, 2026
  • 5 replies
  • 50 views

I’m trying to build the LED example for the P-NUCLEO-WB55.USBDongle.

I have included all the necessary include & source paths yet when I try to build it exits with the following,

 

This file does actual exist though,
 

 

and its location is in the paths list,

 

What am I missing here?

Best answer by NicRoberts

All working today, deleted all the debug & driver folders. Copied over the needed drivers & redid the paths list from scratch.

5 replies

TDK
August 25, 2026

Note the error is talking about not finding stm32wbxx.h, not the file you are showing in your screenshot. That file was found just fine, because the error is from trying to compile it. The Console tab output is typically more useful than the “Problems” tabs.

Try removing spaces from the path.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Senior III
August 27, 2026

Thanks yes I didnt have stm32wbxx.h in my path but now its complaining about RTC typedefs for example,

../Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_timebase_rtc_alarm_template.c:92:8: error: unknown type name 'RTC_HandleTypeDef'

arm-none-eabi-gcc "../Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_ll_crs.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DUSE_STM32WBXX_USB_DONGLE -DCORE_CM4 -DDEBUG -DSTM32WB55xx -c -I"C:/Users/sengnr3/Craftsman - firmware/DongleLEDtest/Core/Inc" -I"C:/Users/sengnr3/Craftsman - firmware/DongleLEDtest/Drivers/BSP/P-NUCLEO-WB55.USBDongle" -I"C:/Users/sengnr3/Craftsman - firmware/DongleLEDtest/Drivers/STM32WBxx_HAL_Driver/Inc" -I"C:/Users/sengnr3/Craftsman - firmware/DongleLEDtest/Drivers/CMSIS/Include" -I"C:/Users/sengnr3/Craftsman - firmware/DongleLEDtest/Drivers/CMSIS/Device/ST/STM32WBxx/Include" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_ll_crs.d" -MT"Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_ll_crs.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_ll_crs.o"

92 | extern RTC_HandleTypeDef hRTC_Handle;

 

Now I know the definition of this exists in stm32wbxx_hal_rtc.h  which exists in the ….\DongleLEDtest\Drivers\STM32WBxx_HAL_Driver\Inc folder which is in my path list.

 

Senior III
August 27, 2026

OK that was because I hadn’t configured the config file. Now I’m having a multiple declaration issue. Ugggh & this is just a simple example. I’m having no luck with this dongle.

Senior III
August 27, 2026

OK down to one issue!

No rule to make target 'C:/Drivers/BSP/P-NUCLEO-WB55.USBDongle/stm32wbxx_usb_dongle.c', needed by 'Drivers/BSP/P-NUCLEO-WB55.USBDongle/stm32wbxx_usb_dongle.o'. Stop.

 

Why is this pointing to that directory? Its not included in any of the path lists whereas the BSP divers folder is include in both the includes & the sources lists

 

NicRobertsAuthorBest answer
Senior III
August 28, 2026

All working today, deleted all the debug & driver folders. Copied over the needed drivers & redid the paths list from scratch.