Skip to main content
Visitor II
December 3, 2025
Question

how to update stm32cubeF1 hal driver library alone

  • December 3, 2025
  • 3 replies
  • 130 views

generally i use cubemx choose cubeF1,but the  hal driver in github is ahead of official website,for example lateset version of cubef1 is 1.8.6.however hal driver has updated later for bug fix. so if i want to use the newest hal driver,i need download form github,and replace it in local repository. it is ok?

    This topic has been closed for replies.

    3 replies

    Graduate II
    December 3, 2025

    Hello @builderx 

    No, I think that you should not download it from GitHub and replace it in local repository. But you should clone the STM32CubeF1 using this git command:

    git clone --recursive https://github.com/STMicroelectronics/STM32CubeF1.git

     Best Regards.

    Ii

    Super User
    December 3, 2025

    You can do this. Sometimes HAL has breaking changes that require changes during initialization, for example, but that's the exception and not the rule.

    Should work, try it out. Back up your project first.

    ST Employee
    December 4, 2025

    Hello @builderx,

    Yes, you can clone the latest version of STM32CubeF1 package from GitHub and replace it in the appropriate location. When CubeMX installs the package during the general installation, it uses the following path:

    C:/Users/your_name/STM32Cube/Repository/STM32Cube_FW_F1_V1.6.2.

    also we can verify the firmware path by opening the CubeMX project and navigating to the Project Manager tab

     Best Regards

     Hamdi