2025-07-07 12:34 AM
Get early access to the next-generation STM32Cube HAL drivers for STM32U5
A major update to STM32Cube HAL drivers, called HAL2, is now available for preview on GitHub. It supports the STM32U5 series.
Building on over 10 years of experience, HAL2 delivers the following:
To support this update, examples have been revamped for better reusability and understanding, and a new online documentation portal is introduced for enhanced content and easier navigation.
Try it now:
Join the conversation and share your thoughts in the comments.
2025-08-01 1:19 AM
@Tom_pm and @Davide Dalfra any particular series you have in mind? And is it because you are looking at starting new projects or would like to upgrade current projects?
2025-09-15 4:15 PM
To chime in re: availability on other series:
If one of the goals of HAL2 is Enhanced portability across STM32 devices, that's going to be defeated by any MCUs recently/currently in production that don't have a HAL2 framework. Current STM HAL API is already fairly portable across processors, and in my company's codebase we make use of that. This includes repos shared across projects. There seem to be enough improvements in HAL2 to make an API break worthwhile, but porting STM HAL reliant code piecemeal with new processor dependencies will create desync issues between projects depending on which MCU they use.
2025-09-16 1:49 AM
While I generally like the changes introduced in HAL2, and especially the C startup instead of assembly, I am too dumb to understand why the ST programmers don't use bool type for simple config options and continue to use uint32_t for boolean variables. Could anybody enlighten me?
2025-09-17 12:40 AM
Hello @USBPD Dan,
Thank you very much for sharing your insights on how you and your company use HAL. Is the main challenge with the two HAL versions that HAL1 allows you to use the same application code with consistent HAL calls across multiple series, despite differences in HAL versions (e.g., STM32F7xx_HAL_Driver vs. STM32U5xx_HAL_Driver)?
If you have any suggestions on how ST could improve the experience of working with both HAL and HAL2, we would love to hear your ideas!
Best Regards,
Emil