Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to update HAL drivers and CMSIS devices from the STM32Cube GitHub release #1026

Merged
merged 3 commits into from
Apr 6, 2020

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Apr 3, 2020

The script allows to update automatically the HAL drivers and CMSIS device from the STM32Cube
released on the STMicroelectronics GitHub organization.

It also applied all know patch and regenerate all wrapped files.

usage

usage: stm32update.py [-h] [-c] [-s pattern]

Update HAL drivers and CMSIS devices from STM32cube released on GitHub

optional arguments:
  -h, --help            show this help message and exit
  -c, --check           Check versions. Default all.
  -s pattern, --serie pattern
                        Pattern of the STM32 serie(s) to update

Examples

Check output

$ python stm32update.py -c
Updating Arduino_Core_STM32...
Updating files: 100% (456/456), done.
Updating STM32CubeF0...
Updating STM32CubeF1...
Updating STM32CubeF2...
Updating STM32CubeF3...
Updating STM32CubeF4...
Updating STM32CubeF7...
Updating STM32CubeG0...
Updating STM32CubeG4...
Updating STM32CubeH7...
Updating STM32CubeL0...
Updating STM32CubeL1...
Updating STM32CubeL4...
Updating STM32CubeMP1...
Updating STM32CubeWB...
----------------------------------------------------------------------
|  Cube Release  |       HAL version       |      CMSIS Version      |
| Name | Version | Current  |   New    | ? | Current  |   New    | ? |
----------------------------------------------------------------------
|  F0  | v1.11.0 |  1.7.3   |  1.7.3   | = |  2.3.4   |  2.3.4   | = |
----------------------------------------------------------------------
|  F1  | v1.8.0  |  1.1.4   |  1.1.4   | = |  4.3.1   |  4.3.1   | = |
----------------------------------------------------------------------
|  F2  | v1.9.0  |  1.2.3   |  1.2.4   | + |  2.2.2   |  2.2.3   | + |
----------------------------------------------------------------------
|  F3  | v1.11.0 |  1.5.3   |  1.5.3   | = |  2.3.4   |  2.3.4   | = |
----------------------------------------------------------------------
|  F4  | v1.25.0 |  1.7.7   |  1.7.8   | + |  2.6.4   |  2.6.5   | + |
----------------------------------------------------------------------
|  F7  | v1.16.0 |  1.2.7   |  1.2.8   | + |  1.2.4   |  1.2.5   | + |
----------------------------------------------------------------------
|  G0  | v1.3.0  |  1.3.0   |  1.3.0   | = |  1.3.0   |  1.3.0   | = |
----------------------------------------------------------------------
|  G4  | v1.2.0  |  1.1.0   |  1.1.1   | + |  1.1.0   |  1.1.1   | + |
----------------------------------------------------------------------
|  H7  | v1.7.0  |  1.7.0   |  1.8.0   | + |  1.7.0   |  1.8.0   | + |
----------------------------------------------------------------------
|  L0  | v1.11.2 |  1.10.2  |  1.10.2  | = |  1.9.0   |  1.9.0   | = |
----------------------------------------------------------------------
|  L1  | v1.9.0  |  1.4.0   |  1.4.0   | = |  2.3.0   |  2.3.0   | = |
----------------------------------------------------------------------
|  L4  | v1.15.1 |  1.11.0  |  1.11.1  | + |  1.6.0   |  1.6.1   | + |
----------------------------------------------------------------------
| MP1  |  1.2.0  |  1.2.0   |  1.2.0   | = |  1.2.0   |  1.2.0   | = |
----------------------------------------------------------------------
|  WB  | v1.5.0  |  1.4.0   |  1.5.0   | + |  1.3.0   |  1.4.0   | + |
----------------------------------------------------------------------

Update all series

$ python stm32update.py
Updating Arduino_Core_STM32...
Updating files: 100% (456/456), done.
Updating STM32CubeF0...
Updating STM32CubeF1...
Updating STM32CubeF2...
Updating STM32CubeF3...
Updating STM32CubeF4...
Updating STM32CubeF7...
Updating STM32CubeG0...
Updating STM32CubeG4...
Updating STM32CubeH7...
Updating STM32CubeL0...
Updating STM32CubeL1...
Updating STM32CubeL4...
Updating STM32CubeMP1...
Updating STM32CubeWB...
Update F2 HAL from version 1.2.3 to 1.2.4
Update F2 CMSIS from version 2.2.2 to 2.2.3
Update F2 wrapped files
Apply 1 patch for F2
Update F4 HAL from version 1.7.7 to 1.7.8
Update F4 CMSIS from version 2.6.4 to 2.6.5
Update F4 wrapped files
Apply 2 patches for F4
Update F7 HAL from version 1.2.7 to 1.2.8
Update F7 CMSIS from version 1.2.4 to 1.2.5
Update F7 wrapped files
Update G4 HAL from version 1.1.0 to 1.1.1
Update G4 CMSIS from version 1.1.0 to 1.1.1
Update G4 wrapped files
Update H7 HAL from version 1.7.0 to 1.8.0
Update H7 CMSIS from version 1.7.0 to 1.8.0
Update H7 wrapped files
Update L4 HAL from version 1.11.0 to 1.11.1
Update L4 CMSIS from version 1.6.0 to 1.6.1
Update L4 wrapped files
Update WB HAL from version 1.4.0 to 1.5.0
Update WB CMSIS from version 1.3.0 to 1.4.0
Update WB wrapped files

@fpistm fpistm added this to the 1.9.0 milestone Apr 3, 2020
@fpistm fpistm added this to In progress in STM32 core based on ST HAL via automation Apr 3, 2020
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
from STM32cube released on GitHub

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm fpistm merged commit 088081d into stm32duino:master Apr 6, 2020
STM32 core based on ST HAL automation moved this from In progress to Done Apr 6, 2020
@fpistm fpistm deleted the CubeUpdate branch April 6, 2020 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant