Skip to main content
markpow
Senior
January 3, 2025
Question

../Core/Inc/stm32f0xx_hal_def.h:29:10: fatal error: stm32f0xx.h: No such file or directory

  • January 3, 2025
  • 1 reply
  • 846 views

I get this error when I try to add code for the BMO 280 sensor. I downloaded all the .h and .c files directly from GitHub.

I can't find this header file.

 

1 reply

TDK
Super User
January 4, 2025

It's here:

cmsis-device-f0/Include/stm32f0xx.h at f3174b2801bbca0b4481d7d8ea62c9d153ce6789 · STMicroelectronics/cmsis-device-f0

 

I'd recommend using STM32CubeMX to generate the starting code. That will get you up and running quickly. You can modify it however you want after that.

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