Skip to content

fix header inclusion issues on STM32U545 series #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

rob-the-dude
Copy link
Contributor

Resolves #6

In trying to get Zephyr RTOS working on the Nucleo U545RE-Q board, I discovered header inclusion issues building the HAL for the STM32U545 SoC.

Zephyr RTOS makes use of the "stm32u5xx_hal_driver" for some interactions with the ST hardware, and builds the HAL by copying the default "stm32_hal_conf_template.h" to "stm32_hal_conf.h", leaving all options enabled.

However, some of the modules (specifically HAL_SRAM_MODULE_ENABLED, HAL_NAND_MODULE_ENABLED and HAL_NOR_MODULE_ENABLED) do not compile for the STM32U545. Based on recommendations from a engineer in the Zephyr forums, I modeled changes to four files ((stm32u5xx_hal_sram.h, stm32u5xx_hal_nor.h, stm32u5xx_hal_nand.h and stm32u5xx_ll_fmc.h) with appropriate "#ifdef" checks using the example for the "stm32g4xx_hal_driver", and this allows the code to build for the U545 series.

IMPORTANT INFORMATION

Contributor License Agreement (CLA)

  • The Pull Request feature will be considered by STMicroelectronics after the signature of a Contributor License Agreement (CLA) by the submitter.
  • If you did not sign such agreement, please follow the steps mentioned in the CONTRIBUTING.md file.

Resolves STMicroelectronics#6

In trying to get Zephyr RTOS working on the Nucleo U545RE-Q board,
I discovered header inclusion issues building the HAL for the
STM32U545 SoC.

Zephyr RTOS makes use of the "stm32u5xx_hal_driver" for some
interactions with the ST hardware, and builds the HAL by
copying the default "stm32_hal_conf_template.h" to "stm32_hal_conf.h",
leaving all options enabled.

However, some of the modules (specifically HAL_SRAM_MODULE_ENABLED,
HAL_NAND_MODULE_ENABLED and HAL_NOR_MODULE_ENABLED) do not compile
for the STM32U545. Based on recommendations from a engineer in the
Zephyr forums, I modeled changes to four files ((stm32u5xx_hal_sram.h,
stm32u5xx_hal_nor.h, stm32u5xx_hal_nand.h and stm32u5xx_ll_fmc.h) with
appropriate "#ifdef" checks using the example for the "stm32g4xx_hal_driver",
and this allows the code to build for the U545 series.
@ALABSTM ALABSTM added bug Something isn't working hal HAL-LL driver-related issue or pull-request. labels Mar 1, 2024
@TOUNSTM TOUNSTM added this to the v1.5.0 milestone Mar 1, 2024
@ALABSTM ALABSTM added the spotted before customer Spotted internally before being pointed out by the user but not yet fixed or published label Mar 19, 2024
@TOUNSTM TOUNSTM merged commit d258c68 into STMicroelectronics:main Mar 19, 2024
@rob-zeno
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hal HAL-LL driver-related issue or pull-request. spotted before customer Spotted internally before being pointed out by the user but not yet fixed or published
Projects
Development

Successfully merging this pull request may close these issues.

header inclusion issues for STM32U545 series
4 participants