Skip to main content
Visitor II
March 31, 2025
Question

CMSIS only project for STM32F0

  • March 31, 2025
  • 1 reply
  • 489 views

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.

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    May 20, 2025

    Hi @U_db ,

    What about using the STM32SnippetsF0 package. 

    The SW4STM32 projects should be portable to STM32CubeIDE.

    Details about this package are provided in this document.

    -Amel