ST Technical Moderator
September 30, 2024
Downloading STM32Cube packages from GitHub correctly
- September 30, 2024
- 1 reply
- 4232 views
You will receive one or more compilation errors if you download any given STM32Cube package by using the GitHub Download ZIP option.
This is because our repository is created using the git submodule command. So, if the GitHub Download ZIP option is used instead of the git clone command, then the different submodules have to be collected and added manually.
To download an STM32Cube package without compilation errors, you have to clone the repository along with the linked submodules using git clone example below:
git clone --recursive https://github.com/STMicroelectronics/STM32Cube1234.gitIn the git clone example above, the "1234" on the STM32Cube1234 needs to be replaced by the STM32 series of the cube package. For example, STM32CubeWB for the STM32WB and STM32CubeH7RS for the STM32H7R/S.Alternatively, you can download our packages directly from ST.com by using the link below:
https://www.st.com/en/embedded-software/stm32cube-mcu-mpu-packages/products.html
