Skip to content

HAL versionupdate for H7RS/L4/L5/N6 + minor cleaning for G0/U0/MP2#331

Merged
erwango merged 15 commits intozephyrproject-rtos:mainfrom
etienne-lms:hal-update
Jan 6, 2026
Merged

HAL versionupdate for H7RS/L4/L5/N6 + minor cleaning for G0/U0/MP2#331
erwango merged 15 commits intozephyrproject-rtos:mainfrom
etienne-lms:hal-update

Conversation

@etienne-lms
Copy link
Copy Markdown
Collaborator

Update scripts/serie_update.py to consider peripheral HAL util source file in generated CMakeLists.txt files.

Update HAL to recently release STM32CubeXXX versions:

  • stm32h7rsxx bump from 1.2.0 to 1.3.0
  • stm32l4xx bump from 1.18.1 to 1.18.2
  • stm32l5xx bump from 1.5.1 to 1.6.0
  • stm32n6xx bump from 1.2.0 to 1.3.0

Refine stm32_assert.h implementation for stm32g0xx, stm32u0xx and stm32mp2xx.

Remove PAGESIZE definition in stm32mp2xx stm32_hal_legacy.h.

@etienne-lms
Copy link
Copy Markdown
Collaborator Author

Comment addressed.

Consider HAL util source files, named stm32<series>xx_util_<driver>.c
(e.g. stm32n6xx_util_i3c.c) that are related to Zephyr STM32
configuration symbol CONFIG_USE_STM32_UTIL_<DRIVER> (e.g.
CONFIG_USE_STM32_UTIL_I3C) and should be built when the config symbol
is enabled.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Update Cube version for STM32H7RSxx series
on https://github.com/STMicroelectronics
from version v1.2.0
to version v1.3.0

Sync stm32_assert.h with other SoCs HAL by including header file
stm32h7rsxx_hal_conf.h instead of defining assert_failed() macro
that is already defined by that header file.

Add references in README file to Zepĥyr STM32 HAL pull requests for
the main local patches.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Update Cube version for STM32L4xx series
on https://github.com/STMicroelectronics
from version v1.18.1
to version v1.18.2

Remove local patch on UNUSED macro that is no more needed.

Remove local patch on LL_EXTI_LINE_18/LL_EXTI_LINE_20 definition, see
commit 6b4308f ("ext/hal: stm32cube: fix exti declaration in STM32L4")
that is not needed.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Update Cube version for STM32L5xx series
on https://github.com/STMicroelectronics
from version v1.5.1
to version v1.6.0

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Update Cube version for STM32N6xx series
on https://github.com/STMicroelectronics
from version v1.2.0
to version v1.3.0

Add references in README file to Zepĥyr STM32 HAL pull requests for main
local patches applied.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Re - generate common_ll headers after Cube updates

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Remove stm32_assert_template.h from STM32G0xx HAL for consistency
with other SoCs HAL immplementation: assert_failed() macro is
implemented in stm32g0xx_hal_conf.h and stm32_assert.h includes this
header file.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Remove stm32_assert_template.h from STM32U0xx HAL for consistency
with other SoCs HAL immplementation: assert_failed() macro is
implemented in stm32u0xx_hal_conf.h and stm32_assert.h includes this
header file.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Remove local definition of PAGESIZE (related in HAL to a flash page size)
in STM32MP2xx HAL since it conflicts with POSIX.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Refine implementation of STM32 assertion macro assert_failed() in
STM32MP2xx HAL for consistency with other SoCs HAL: the macro is
implemented in stm32mp2xx_hal_conf.h and stm32_assert.h includes this
header file.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Refine implementation of STM32 assertion macro assert_failed() in
STM32U3xx HAL for consistency with other SoCs HAL: the macro is
implemented in stm32u3xx_hal_conf.h and stm32_assert.h includes this
header file.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
@etienne-lms
Copy link
Copy Markdown
Collaborator Author

Comment addressed. The HAL/LL update contnt is the same.
I've appended a commit to remove useless reference to ZEPHYR_BASE in scripts/README.rst file.

Copy link
Copy Markdown
Contributor

@ABESTM ABESTM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one point regarding the I3C util files. Otherwise LGTM.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be applied to other families supporting I3C as well.
This should be H5, N6, MP2 and U3.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the notif.
MP2 and N6 already consider stm32<soc>_util_i3c.c.
I'll update the CMakeLists.txt files for for H5 and U3.

Build stm32u3xx_util_i3c.c driver when CONFIG_USE_STM32_UTIL_I3C
config symbol is enable.

This manual change will not be needed on next STM32H5 HAL release update
since serie_update.py script now handles this config and source file.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Build stm32h5xx_util_i3c.c driver when CONFIG_USE_STM32_UTIL_I3C
config symbol is enable.

This manual change will not be needed on next STM32H5 HAL release update
since serie_update.py script now handles this config and source file.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Correct HAL module update documentation since ZEPHYR_BASE is not
required.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Fix some missing terminal dot, rephrasing and upper case characters
in the module update scripts documentation.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
@etienne-lms
Copy link
Copy Markdown
Collaborator Author

Comment #331 (comment) addressed.

@erwango erwango self-assigned this Jan 6, 2026
@erwango erwango merged commit ec0fe4a into zephyrproject-rtos:main Jan 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants