Skip to main content
Explorer
March 7, 2024
Solved

hal_stm32 on Zephyr 3.2.0

  • March 7, 2024
  • 1 reply
  • 2674 views

Hi everyone. I'm currently working on a legacy project that only runs on Zephyr V3.2.0. I have to use the hal_stm32 to get some peripherals running (https://github.com/zephyrproject-rtos/hal_stm32). The latest version of hal_stm32 is not compatible with Zephyr V3.2.0. How can I switch to an older release of hal_stm32? I haven't seen any branches or tags that would hint to the right STM32_hal version.

Best regards

Maikel

    This topic has been closed for replies.
    Best answer by Sarra.S

    Hello @Heisenberg, sorry for the delayed answer, 

    If you are using west to manage your Zephyr modules, you will need to update the west.yml manifest file in your Zephyr project to point to the specific version of hal_stm32 you have checked out

    Open the west.yml file and find the section that defines the hal_stm32 module. It should look something like this:

    - name: hal_stm32
     revision: <revision or tag>
     path: modules/hal/stm32

     and then synchronize your project with with new module version.

    I hope that helps! 

     

    1 reply

    Sarra.SAnswer
    ST Employee
    April 15, 2024

    Hello @Heisenberg, sorry for the delayed answer, 

    If you are using west to manage your Zephyr modules, you will need to update the west.yml manifest file in your Zephyr project to point to the specific version of hal_stm32 you have checked out

    Open the west.yml file and find the section that defines the hal_stm32 module. It should look something like this:

    - name: hal_stm32
     revision: <revision or tag>
     path: modules/hal/stm32

     and then synchronize your project with with new module version.

    I hope that helps!