Skip to main content
Explorer
March 17, 2026
Solved

HAL2, traditional HAL and STM32CubeMX 2 compatibility

  • March 17, 2026
  • 2 replies
  • 637 views
Recently I’ve been learning about the updated STM32 software ecosystem, including the new HAL2 library and STM32CubeMX 2 tool. I have a few practical questions and would like to start a discussion with all STM32 developers here.
 
What are the new characteristics, improvements and advantages of HAL2 compared with the traditional HAL library?
 
Can STM32CubeMX 2 still support earlier and older STM32 MCUs, or does it only serve the latest chip series?
 
For those legacy STM32 microcontrollers, are they able to use the new HAL2 library, or can they only run the classic HAL as before?
 
If you have relevant development experience or official information, welcome to share your views and explanations.
 
 
Best answer by Emil Damkjaer PETERSEN

Hello @wang_jingbo,

To get an overview of what the HAL update, HAL2, you can find the developer news article: https://community.st.com/t5/developer-news/stm32cube-embedded-software-for-stm32c5-series/ba-p/885786

 

More in depth information on the changes between HAL1 and HAL2 can be found in our migration guide here:https://dev.st.com/stm32cube-docs/hal1-to-hal2-migration/1.0.0/en/docs/markup/drivers_documentation/drivers_toc.html, while more information on the HAL2 drivers can be found here: https://dev.st.com/stm32cube-docs/stm32c5xx-hal-drivers/2.0.0/en/index.html

 

For the support, we unfortunately do not have any plans to support STM32 series that are older than the STM32C5 at the moment, but all new series will be HAL2 based including the already announced STM32V8.

 

Best Regards,

Emil

 

2 replies

mƎALLEm
Technical Moderator
March 17, 2026

Hello,

One of the advantages of HAL2 is the memory footprint. It consumes less memory than HAL.

For the rest of your questions I've answered them in this post.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Emil Damkjaer PETERSEN
ST Employee
March 17, 2026

Hello @wang_jingbo,

To get an overview of what the HAL update, HAL2, you can find the developer news article: https://community.st.com/t5/developer-news/stm32cube-embedded-software-for-stm32c5-series/ba-p/885786

 

More in depth information on the changes between HAL1 and HAL2 can be found in our migration guide here:https://dev.st.com/stm32cube-docs/hal1-to-hal2-migration/1.0.0/en/docs/markup/drivers_documentation/drivers_toc.html, while more information on the HAL2 drivers can be found here: https://dev.st.com/stm32cube-docs/stm32c5xx-hal-drivers/2.0.0/en/index.html

 

For the support, we unfortunately do not have any plans to support STM32 series that are older than the STM32C5 at the moment, but all new series will be HAL2 based including the already announced STM32V8.

 

Best Regards,

Emil