2025-12-03 12:23 AM - edited 2025-12-03 12:24 AM
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?
2025-12-03 1:06 AM
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.gitBest Regards.
Ii
2025-12-03 6:28 AM
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.
2025-12-04 6:38 AM - edited 2025-12-04 6:39 AM
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