Skip to content

Commit 739acb7

Browse files
authored
Merge pull request #2920 from fpistm/stm32cube_hardening
chore: harden stm32cube script
2 parents 8d61785 + 02b6ba3 commit 739acb7

File tree

2,008 files changed

+2537
-2456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,008 files changed

+2537
-2456
lines changed

CI/update/README.md

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,11 @@ By default, generates:
88
- *boards_entry.txt*
99
- *generic_clock.c*
1010

11-
for all xml files description available in [STM32CubeMX](http://www.st.com/en/development-tools/stm32cubemx.html) internal database.
12-
Internal database path have to be defined in `variant_config.json`.
13-
It can be the one from STM32CubeMX directory if defined or the one from GitHub:
14-
15-
https://github.com/STMicroelectronics/STM32_open_pin_data
11+
for all xml files description available in [STM32CubeMX](http://www.st.com/en/development-tools/stm32cubemx.html) database.
12+
By default, the database used is the one from GitHub:
13+
https://github.com/STMicroelectronics/STM32_open_pin_data
14+
The internal database from STM32CubeMX directory can also be used.
15+
The path have to be defined in `update_config.json`.
1616

1717
After file generation, review them carefully and please report any issue
1818
[here](https://github.com/stm32duino/Arduino_Core_STM32/issues).
19-
20-
21-
### Usage:
22-
23-
`python genpinmap_arduino.py [-h] [-l | -m xml]`
24-
25-
26-
### Optional arguments:
27-
28-
`-h`, `--help` &emsp;&emsp;&emsp;&emsp;&emsp;&emsp; Show this help message and exit<br>
29-
`-l`, `--list` &emsp;&emsp;&emsp;&emsp;&emsp;&emsp; List available xml files description in database<br>
30-
`-f name`, `--family name`&nbsp; Generate all files for specified mcu family.<br>
31-
`-c`, `--cube` &emsp;&emsp;&emsp;&emsp;&emsp;&emsp; Use STM32CubeMX internal database. Default use GitHub STM32_open_pin_data repository.<br>
32-
`-s`, `--skip` &emsp;&emsp;&emsp;&emsp;&emsp;&emsp; Skip STM32_open_pin_data clone/fetch<br>
33-
34-
All generated files are available under _./variants/<mcu_serie>/<mcu_names>_ directory

CI/update/fqbn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
import subprocess
66
import argparse
77

8-
98
# List
109
fqbn_list = []
1110
arduino_cli = ""
1211
arduino_cli_path = ""
13-
stm32_url = "https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json"
12+
file_index = "package_stmicroelectronics_index.json"
13+
stm32_url = f"https://github.com/stm32duino/BoardManagerFiles/raw/main/{file_index}"
1414
arduino_platform = "STMicroelectronics:stm32"
1515

1616
# Parser

CI/update/stm32_series.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"series": {
3+
"C0": "xx",
4+
"F0": "xx",
5+
"F1": "xx",
6+
"F2": "xx",
7+
"F3": "xx",
8+
"F4": "xx",
9+
"F7": "xx",
10+
"G0": "xx",
11+
"G4": "xx",
12+
"H5": "xx",
13+
"H7": "xx",
14+
"L0": "xx",
15+
"L1": "xx",
16+
"L4": "xx",
17+
"L5": "xx",
18+
"MP1": "xx",
19+
"U0": "xx",
20+
"U3": "xx",
21+
"U5": "xx",
22+
"WB0": "x",
23+
"WBA": "xx",
24+
"WB": "xx",
25+
"WL3": "x",
26+
"WL": "xx"
27+
}
28+
}

0 commit comments

Comments
 (0)