2025-03-31 3:56 AM
How do I get a non-HAL project going but with CMSIS for a STM32F051?
I've seen a few references describing how to add various folders containing the required files to the projects build settings. The problem for me is the folders described do not exist on my installation for some reason. They are typically under \STM32CubeIDE\plugins\....
If I create a HAL project I can see what I expect I need added to the project automatically along the lines: stm32f051x8.h , stm32f051xx.h and system_stm32f0xx.h. So the IDE does have them somewhere. I tried searching my IDE installation to locate the original source location but no hits.
Creating a Target Project Type as blank is really blank. Trying to include any of the above generates errors along the line "file not found" .
I've considered just copying the .h files from a HAL project but this feels kind of dodgy, Plus I expect there is a proper way and this isn't it.