Senior
April 23, 2020
Question
STM32 minimalistic project template WITHOUT STM32CubeIDE C Code generation. How to include ST HAL and/or LL drivers into an empty project?
- April 23, 2020
- 13 replies
- 13481 views
Hi there
I moved from TI DSPs using Code Composer Studio to a STM32F4 MCU using STM32CubeIDE and I already struggle with the first steps. While I fancy the automatic Code generation that the STM32CubeIDE configurator offers, I would like to start my first projects without it in order to get a better understanding of the MCU and the CubeIDE.
I am coming straight to the point:
- How do I best create an empty project such that I afterwards include the pre-defined functions (peripherals such as ADC, Timers etc.)?
- My current approach has been: File->New->STM32 Project->Target Project Type: Empty (shown in figure CubeIDE)
- This seems to do the job (shown in CubeIDE1). But that brings me directly to question nr 2:
- Once I have this empty project, I would like to include the necessary pre-defined functions, header files etc. Where and how in the CubeIDE (project settings) do I do the proper linking and including (see CubeIDE2)?
- I have downloaded the STM32CubeF4 driver package and read the getting started manual. So now the question is how to include the necessary driver files into my project via STMCubeIDE.
- Is there any document that describes this procedure and the required header files/driver files etc?
I hope I am not asking for too much help here.
Thank you,
