Skip to main content
Ijaz Ahmad
Associate II
February 10, 2018
Solved

STM32F4 HAL Libaries

  • February 10, 2018
  • 1 reply
  • 816 views
Posted on February 10, 2018 at 09:44

Hi,

I am trying to migrate from STM32 Standard peripheral libraries to HAL libraries. I have few queries here:

1)   Can i use HAL libraries with Keil without first creating project in CubeMX? I just want to build my project just from skretch like in case of SPL but every where i see example on how to use CubeMx. CubeMx adds a lot text and comments for user code/variables etc. which sometimes create difficulties maintaining own code. I just want to use HAL libraries by just adding appropriate files to my project. How can i do that?

2)   I can't see any direct link to HAL libraries on ST website. The download links seems to be downloading CubeMX??

3)  What benefits HAL libraries have over SPL??

#standard-peripheral-libraries #hal-libraries #stm32f4-d
This topic has been closed for replies.
Best answer by Bogdan Golab
Posted on February 12, 2018 at 09:44

Ad1. Of course. All the ST-provide examples are not generated by the CubeMX. See Ad2

Ad2.

http://www.st.com/en/embedded-software/stm32cube-mcu-packages.html?querycriteria=productId=LN1897

 

Ad3. Theoretically you can easily migrate from one MCU to another, easy prototyping

1 reply

Bogdan Golab
Bogdan GolabBest answer
Lead
February 12, 2018
Posted on February 12, 2018 at 09:44

Ad1. Of course. All the ST-provide examples are not generated by the CubeMX. See Ad2

Ad2.

http://www.st.com/en/embedded-software/stm32cube-mcu-packages.html?querycriteria=productId=LN1897

 

Ad3. Theoretically you can easily migrate from one MCU to another, easy prototyping