cancel
Showing results for 
Search instead for 
Did you mean: 

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

markpow
Associate III

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 1
TDK
Guru

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