← index #6422PR #18268
Related · high · value 3.477
QUERY · ISSUE

STM32 HAL Driver Update

openby ckilimciopened 2020-09-09updated 2020-09-17
port-stm32

Hello all,

Recently, STMicroelectronics updated STM32F4 HAL driver [1]. Some of the APIs are changed, like CAN. Do you plan to update included sources listed here?

[1] https://www.st.com/resource/en/user_manual/dm00105879-description-of-stm32f4-hal-and-ll-drivers-stmicroelectronics.pdf

Sincerely,
Caglar

CANDIDATE · PULL REQUEST

lib/stm32lib: Update WB to v1.23.0.

mergedby andrewleechopened 2025-10-14updated 2025-10-28
port-stm32lib

Summary

Update the stm32lib submodule to bring in STM32CubeWB v1.23.0 (updating from v1.10.0).

This update follows the vendor/work branch workflow and includes:

  • Import of STM32CubeWB v1.23.0 vendor code on the vendor branch
  • All 48 MicroPython-specific patches successfully rebased onto the new vendor code
  • New device support: STM32WB10xx, STM32WB15xx, STM32WB1Mxx
  • New file added: STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_smbus_ex.c
  • USB pass-by-reference optimization (commit 46cdeaf0) re-applied on top of new import

The stm32lib submodule update is tracked at: https://github.com/micropython/stm32lib/pull/27

The instructions followed are more explicitely described in https://github.com/micropython/stm32lib/pull/28

Testing

The rebase completed successfully with no conflicts. All 48 patches applied cleanly.

This update of the WB libraries has been used in https://github.com/micropython/micropython/pull/15592 and provides fixes needed for the current version of TinyUSB.

No other hardware peripherals have been explicitely tested at this stage.

Trade-offs and Alternatives

This is a vendor library update that brings bug fixes and new device support from ST. The submodule points to the work branch which includes all MicroPython customizations, maintaining compatibility with
the existing port while gaining upstream improvements.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied