Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 5 additions & 21 deletions CI/update/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,11 @@ By default, generates:
- *boards_entry.txt*
- *generic_clock.c*

for all xml files description available in [STM32CubeMX](http://www.st.com/en/development-tools/stm32cubemx.html) internal database.
Internal database path have to be defined in `variant_config.json`.
It can be the one from STM32CubeMX directory if defined or the one from GitHub:

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

After file generation, review them carefully and please report any issue
[here](https://github.com/stm32duino/Arduino_Core_STM32/issues).


### Usage:

`python genpinmap_arduino.py [-h] [-l | -m xml]`


### Optional arguments:

`-h`, `--help` &emsp;&emsp;&emsp;&emsp;&emsp;&emsp; Show this help message and exit<br>
`-l`, `--list` &emsp;&emsp;&emsp;&emsp;&emsp;&emsp; List available xml files description in database<br>
`-f name`, `--family name`&nbsp; Generate all files for specified mcu family.<br>
`-c`, `--cube` &emsp;&emsp;&emsp;&emsp;&emsp;&emsp; Use STM32CubeMX internal database. Default use GitHub STM32_open_pin_data repository.<br>
`-s`, `--skip` &emsp;&emsp;&emsp;&emsp;&emsp;&emsp; Skip STM32_open_pin_data clone/fetch<br>

All generated files are available under _./variants/<mcu_serie>/<mcu_names>_ directory
4 changes: 2 additions & 2 deletions CI/update/fqbn.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import subprocess
import argparse


# List
fqbn_list = []
arduino_cli = ""
arduino_cli_path = ""
stm32_url = "https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json"
file_index = "package_stmicroelectronics_index.json"
stm32_url = f"https://github.com/stm32duino/BoardManagerFiles/raw/main/{file_index}"
arduino_platform = "STMicroelectronics:stm32"

# Parser
Expand Down
28 changes: 28 additions & 0 deletions CI/update/stm32_series.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"series": {
"C0": "xx",
"F0": "xx",
"F1": "xx",
"F2": "xx",
"F3": "xx",
"F4": "xx",
"F7": "xx",
"G0": "xx",
"G4": "xx",
"H5": "xx",
"H7": "xx",
"L0": "xx",
"L1": "xx",
"L4": "xx",
"L5": "xx",
"MP1": "xx",
"U0": "xx",
"U3": "xx",
"U5": "xx",
"WB0": "x",
"WBA": "xx",
"WB": "xx",
"WL3": "x",
"WL": "xx"
}
}
Loading