cancel
Showing results for 
Search instead for 
Did you mean: 

how to update stm32cubeF1 hal driver library alone

builderx
Associate

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?

3 REPLIES 3
Issamos
Lead II

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

TDK
Super User

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.

If you feel a post has answered your question, please click "Accept as Solution".
T_Hamdi
ST Employee

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

 

 

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Hamdi Teyeb