2020-07-24 02:35 PM
Hello,
When I create a new project in STM32CubeIDE, automatically it downloads all HAL libraries (for examples: stm32f1xx_hal_rcc or stm32f1xx_hal_tim) but I want to use the STM32 Standard Peripheral Libraries (for example: stm32f10x_rcc or stm32f10x_tim). So the question is how can I ask STM32CubeIDE to download these libraries and use it?
Thanks
Solved! Go to Solution.
2020-07-24 02:38 PM
You need to download them manually and add them to your project. STM32CubeMX code generation doesn't support the old SPL libraries.
2020-07-24 02:38 PM
You need to download them manually and add them to your project. STM32CubeMX code generation doesn't support the old SPL libraries.
2020-07-24 02:41 PM
https://www.st.com/en/embedded-software/stm32-standard-peripheral-libraries.html
2020-07-24 06:25 PM
Yes, will need to construct your own projects, pretty sure CubeIDE isn't going to provide templates. The SPL will likely have GNU/GCC examples for old/deprecated IDE, might be able to port those.
Could perhaps create a makefile to build.
Probably going to need to DIY as ST's abandoned it, and the F1's are 12+ years old.
2020-07-26 01:56 AM
Thank to all replies.
Finally, I downloaded the SPL library and load it into STM32CubeIDE. I modified the include paths (to add the paths related to SPL and to remove the paths related to HAL) and now it compile with SPL.
Thanks again