Skip to content

Commit e5ec4aa

Browse files
authored
Merge pull request #6 from stm32duino/master
Update
2 parents 2e1e076 + 8ae7724 commit e5ec4aa

File tree

5,764 files changed

+1008167
-149809
lines changed

Some content is hidden

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

5,764 files changed

+1008167
-149809
lines changed

Diff for: .github/ISSUE_TEMPLATE/bug_report.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
---
2-
name: Bug report
3-
about: Create a report to help us improve
2+
name: "\U0001F41B Bug report"
3+
about: Report a bug or unexpected behavior while using the STM32 core
44
title: ''
5-
labels: ''
5+
labels: bug
66
assignees: ''
77

88
---
99

1010
**Please, before reporting any issue**
1111
- Make sure you are using the latest Arduino_Core_STM32 version.
1212
https://github.com/stm32duino/Arduino_Core_STM32/releases/latest
13-
- Make sure the issue is not already reported/fixed on GitHub or discussed on the [stm32duino forum](http://stm32duino.com)
13+
- Make sure the issue is not already reported/fixed on GitHub or discussed on the [stm32duino forum](https://stm32duino.com)
1414
- Submit a GitHub issue only for reporting a problem related to the [Arduino_Core_STM32](https://github.com/stm32duino/Arduino_Core_STM32).
1515
- **Avoid** to submit a GitHub issue for project troubleshooting.
16-
17-
Any questions/feedback/suggestions should be discussed on the [stm32duino forum](http://stm32duino.com):
18-
* questions on the [STM32 Core](http://stm32duino.com/viewforum.php?f=35)
19-
* bugs/enhancements on the [STM core: Bugs and enhancements](http://stm32duino.com/viewforum.php?f=38)
2016

21-
When reporting any issue, please try to provide all relevant information:
17+
Any questions/feedback/suggestions should be discussed on the [stm32duino forum](https://stm32duino.com):
18+
* questions on the [STM32 Core](https://www.stm32duino.com/viewforum.php?f=35)
19+
* bugs/enhancements on the [STM core: Bugs and enhancements](https://www.stm32duino.com/viewforum.php?f=38)
20+
21+
22+
⚠ When reporting any issue, please try to provide all relevant information to help on its resolution.
2223

2324
**Describe the bug**
2425
A clear and concise description of what the bug is.
@@ -42,7 +43,7 @@ If applicable, add screenshots to help explain your problem.
4243
- Arduino IDE version: [e.g. 1.8.8]
4344
- STM32 core version: [e.g. 1.4.0]
4445
- Tools menu settings if not the default: [e.g. Newlib Standard, No Serial]
45-
- Upload method: [e.g. STLink]
46+
- Upload method: [e.g. SWD]
4647

4748
**Board (please complete the following information):**
4849
- Name: [e.g. Nucleo F429ZI]

Diff for: .github/ISSUE_TEMPLATE/config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Ask a question
4+
about: For general-purpose questions and answers, see the Discussions section.
5+
url: https://github.com/stm32duino/Arduino_Core_STM32/discussions
6+
- name: Request support
7+
about: Please check out the Arduino for STM32 forum.
8+
url: https://www.stm32duino.com/
+7-3
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
---
2-
name: Feature request/improvement
2+
name: "Feature request/improvement"
33
about: Suggest an idea or improvement for this project
44
title: ''
5-
labels: ''
5+
labels: 'enhancement'
66
assignees: ''
77

88
---
99

1010
**Is your feature request/improvement related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
A clear and concise description of what the problem is.
1213

1314
**Describe the solution you'd like**
15+
1416
A clear and concise description of what you want to happen.
1517

1618
**Describe alternatives you've considered**
19+
1720
A clear and concise description of any alternative solutions or features you've considered.
1821

1922
**Additional context**
23+
2024
Add any other context, example or screenshots about the feature request here.
2125

2226
Any contribution is welcome, so do not hesitate to submit a PR.

Diff for: .github/ISSUE_TEMPLATE/new-variant-request.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: New variant request
2+
name: "🎁 New variant request"
33
about: Request for a new board support
44
title: "[New Variant]"
55
labels: New variant

Diff for: .github/actions/pio-build/entrypoint.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ platformio platform install "https://github.com/platformio/platform-ststm32.git"
1111
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/platform.json'), 'r+'); data=json.load(fp); data['packages']['framework-arduinoststm32']['version'] = '*'; del data['packages']['framework-arduinoststm32']['owner']; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
1212
exit 1
1313
}
14+
1415
ln --symbolic "$GITHUB_WORKSPACE" "$HOME/.platformio/packages/framework-arduinoststm32" || {
1516
exit 1
1617
}
@@ -24,6 +25,6 @@ tar --extract --bzip2 --file="$CMSIS_ARCHIVE" || {
2425
cd "$GITHUB_WORKSPACE/CI/build/" || {
2526
exit 1
2627
}
27-
python3 platformio-builder.py --board=blackpill_f103c8 --board=remram_v1
28+
python3 platformio-builder.py --board=malyanm300_f070cb --board=nucleo_l152re
2829

2930
exit $?

Diff for: .github/workflows/Continuous-Integration.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
id: Compile
5959
uses: stm32duino/actions/compile-examples@master
6060
with:
61-
additional-url: 'https://github.com/stm32duino/BoardManagerFiles/raw/dev/STM32/package_stm_index.json'
61+
additional-url: 'https://github.com/stm32duino/BoardManagerFiles/raw/dev/package_stmicroelectronics_index.json'
6262

6363
# Use the output from the `Compile` step
6464
- name: Compilation Errors

Diff for: .gitignore

+2-5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ boards.local.txt
44
platform.local.txt
55
path_config.json
66
update_config.json
7+
variant_config.json
78

89
# Backup
910
*.bak
@@ -30,8 +31,4 @@ __pycache__/
3031

3132
# VisualStudioCode
3233
.vscode/*
33-
!.vscode/settings.json
34-
!.vscode/tasks.json
35-
!.vscode/launch.json
36-
!.vscode/extensions.json
37-
*.code-workspace
34+
*.code-workspace

Diff for: .travis.yml.old

-93
This file was deleted.

Diff for: CI/build/README.md

+30-26
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,65 @@
1-
# arduino-builder.py
1+
# arduino-cli.py
22

3-
This script manages _[arduino-builder](https://github.com/arduino/arduino-builder)_ command line tool for compiling Arduino sketch(es).
3+
This script manages _[arduino-cli](https://github.com/arduino/arduino-cli)_ command line tool for compiling Arduino sketch(es).
44

55
## Requirements
6-
- [Arduino IDE](https://www.arduino.cc/en/Main/Software) (_[arduino-builder](https://github.com/arduino/arduino-builder)_ is included)
6+
- [arduino-cli](https://github.com/arduino/arduino-cli)
77
- Python version greater than or equal to 3.2 (due to `concurrent.futures` usage)
88

99
## Usage
1010

1111
```
12-
usage: arduino-builder.py [-h] [-l [{board,sketch}] | -a] [-b pattern] [-c]
13-
[--arch architecture]
14-
[--config <core configuration file>] [-v]
15-
[--bin | --travis]
16-
[-i <shetch filepath> | -f <sketches list filepath> | -s pattern | -e <excluded sketches list filepath>]
12+
usage: arduino-cli.py [-h] [-l [{board,sketch}] | -a] [-b pattern] [-c]
13+
[--arch architecture]
14+
[--config <core configuration file>] [-u <string>] [-v]
15+
[--ci]
16+
[-i <shetch filepath> | -f <sketches list filepath> | -s pattern | -e <excluded sketches list filepath>]
1717
18-
Manage arduino-builder command line tool for compiling Arduino sketch(es).
18+
Manage arduino-cli to build sketche(s) for STM32 boards.
1919
2020
optional arguments:
2121
-h, --help show this help message and exit
2222
-l [{board,sketch}], --list [{board,sketch}]
2323
list available board(s) or sketch(es)
2424
-a, --all build all sketches found for all available boards
2525
-b pattern, --board pattern
26-
pattern to find one or more board(s) to build
27-
-c, --clean clean output directory
28-
<user path config>/arduinoBuilderOutput
26+
pattern to build one or more board(s)
27+
-c, --clean clean output directory.
2928
--arch architecture core architecture to build. Default build architecture
30-
is stm32
29+
is 'stm32'
3130
--config <core configuration file>
3231
JSON file containing the build configuration for one
3332
or more maintainer/architecture. Board options for
3433
build, applicability of sketches for boards or
3534
required options. If sketch is not listed then
3635
applicable to all board. Default core configuration is
37-
for 'stm32' architecture in: conf/cores_config.json
38-
-v, --verbose enable arduino-builder verbose mode
39-
--bin save binaries
40-
--travis Custom configuration for Travis CI build
36+
for 'stm32 'architecture in:
37+
<core path>\CI\build\conf\cores_config.json
38+
-u <string>, --url <string>
39+
additional URL for the board manager Default url : htt
40+
ps://github.com/stm32duino/BoardManagerFiles/raw/maste
41+
r/package_stmicroelectronics_index.json
42+
-v, --verbose enable arduino-cli verbose mode
43+
--ci custom configuration for CI build
4144
4245
Sketch(es) options:
43-
By default build <arduino path>/examples/01.Basics/BareMinimum/BareMinimum.ino
46+
By default build C:\STM32\arduino\arduino-1.8.13\portable\packages\STM32\h
47+
ardware\stm32\2.0.0-dev\CI\build\examples\BareMinimum
4448
4549
-i <shetch filepath>, --ino <shetch filepath>
46-
single ino file to build
50+
single sketch file to build
4751
-f <sketches list filepath>, --file <sketches list filepath>
4852
file containing list of sketches to build
4953
-s pattern, --sketches pattern
5054
pattern to find one or more sketch to build
5155
-e <excluded sketches list filepath>, --exclude <excluded sketches list filepath>
52-
file containing pattern of sketches to ignore. Default
53-
path : conf/exclude_list.txt
56+
file containing sketches pattern to ignore. Default
57+
path : <core path>\\CI\build\conf\exclude_list.txt
5458
```
5559

5660
## Cores configuration files
5761

58-
Script is able to uses a JSON configuration file containing the build configuration for one or more maintainer/architecture.
62+
Script is able to uses a JSON configuration file containing the build configuration for one or more maintainer/architecture.
5963
A default configuration file is provided: [cores_config.json](conf/cores_config.json)
6064

6165

@@ -144,7 +148,7 @@ Will build all sketches available in `09.USB/*` for the listed boards and add `
144148

145149
* List all boards containing `F1` or `L4` (not case sensitive):
146150

147-
`python3 arduino-builder.py -l -b "F1|l4"`
151+
`python3 arduino-cli.py -l -b "F1|l4"`
148152

149153
Will produce on the [stm32](https://github.com/stm32duino/Arduino_Core_STM32) core:
150154
```
@@ -164,7 +168,7 @@ NUCLEO_L496ZG-P
164168

165169
* List all sketch containing `digital` or `analog` (not case sensitive):
166170

167-
`python3 arduino-builder.py -l sketch -s "Digital|analog"`
171+
`python3 arduino-cli.py -l sketch -s "Digital|analog"`
168172

169173
Will produce on the [stm32](https://github.com/stm32duino/Arduino_Core_STM32) core:
170174
```
@@ -194,11 +198,11 @@ Build configuration for 'STM32' maintainer and 'stm32' architecture
194198

195199
* Build all sketches containing `digital` or `analog` for all boards containing `F1` or `L4` (not case sensitive):
196200

197-
`python3 arduino-builder.py -s "Digital|analog" -b "F1|l4"`
201+
`python3 arduino-cli.py -s "Digital|analog" -b "F1|l4"`
198202

199203
* List all boards for STM32F1 core:
200204

201-
`python3 arduino-builder.py -l --arch STM32F1`
205+
`python3 arduino-cli.py -l --arch STM32F1`
202206

203207
Will list:
204208
```

0 commit comments

Comments
 (0)