Skip to main content
SegmentFault
Associate II
July 24, 2020
Solved

How to download and use STM32 Standard Peripheral Libraries (for example: stm32f10x_rcc) instead HAL libraries?

  • July 24, 2020
  • 4 replies
  • 5355 views

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

This topic has been closed for replies.
Best answer by TDK

You need to download them manually and add them to your project. STM32CubeMX code generation doesn't support the old SPL libraries.

4 replies

TDK
TDKBest answer
July 24, 2020

You need to download them manually and add them to your project. STM32CubeMX code generation doesn't support the old SPL libraries.

"If you feel a post has answered your question, please click ""Accept as Solution""."
TDK
July 24, 2020
"If you feel a post has answered your question, please click ""Accept as Solution""."
Tesla DeLorean
Guru
July 25, 2020

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.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
SegmentFault
Associate II
July 26, 2020

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