Skip to content

Commit e4d453f

Browse files
committed
Merge branch 'release/v15.4.0'
2 parents e495651 + d3201d4 commit e4d453f

File tree

57 files changed

+39
-3238
lines changed

Some content is hidden

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

57 files changed

+39
-3238
lines changed

.github/workflows/examples.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
os: [ubuntu-18.04, windows-latest, macos-latest]
11-
python-version: [3.7]
10+
os: [ubuntu-latest, windows-latest, macos-latest]
1211
example:
1312
- "examples/arduino-blink"
1413
- "examples/arduino-external-libs"
@@ -59,18 +58,17 @@ jobs:
5958
- "tests/arduino-blink-different-cores"
6059
runs-on: ${{ matrix.os }}
6160
steps:
62-
- uses: actions/checkout@v2
61+
- uses: actions/checkout@v3
6362
with:
6463
submodules: "recursive"
65-
- name: Set up Python ${{ matrix.python-version }}
66-
uses: actions/setup-python@v1
64+
- name: Set up Python
65+
uses: actions/setup-python@v3
6766
with:
68-
python-version: ${{ matrix.python-version }}
67+
python-version: "3.9"
6968
- name: Install dependencies
7069
run: |
71-
python -m pip install --upgrade pip
7270
pip install -U https://github.com/platformio/platformio/archive/develop.zip
73-
platformio platform install file://.
71+
pio pkg install --global --platform symlink://.
7472
- name: Build examples
7573
run: |
76-
platformio run -d ${{ matrix.example }}
74+
pio run -d ${{ matrix.example }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ST STM32: development platform for [PlatformIO](http://platformio.org)
1+
# ST STM32: development platform for [PlatformIO](https://platformio.org)
22

33
[![Build Status](https://github.com/platformio/platform-ststm32/workflows/Examples/badge.svg)](https://github.com/platformio/platform-ststm32/actions)
44

@@ -9,7 +9,7 @@ The STM32 family of 32-bit Flash MCUs based on the ARM Cortex-M processor is des
99

1010
# Usage
1111

12-
1. [Install PlatformIO](http://platformio.org)
12+
1. [Install PlatformIO](https://platformio.org)
1313
2. Create PlatformIO project and configure a platform option in [platformio.ini](https://docs.platformio.org/page/projectconf.html) file:
1414

1515
## Stable version

builder/compat.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

builder/frameworks/_bare.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
env = DefaultEnvironment()
2222

2323
env.Append(
24-
ASFLAGS=["-x", "assembler-with-cpp"],
24+
ASPPFLAGS=["-x", "assembler-with-cpp"],
2525

2626
CCFLAGS=[
2727
"-Os", # optimize for size
@@ -58,6 +58,3 @@
5858
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
5959
]
6060
)
61-
62-
# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
63-
env.Append(ASFLAGS=env.get("CCFLAGS", [])[:])

builder/frameworks/libopencm3

builder/frameworks/stm32cube.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -215,18 +215,22 @@ def process_dsp_lib():
215215
)
216216

217217

218-
env.Replace(AS="$CC", ASCOM="$ASPPCOM")
218+
machine_flags = [
219+
"-mthumb",
220+
"-mcpu=%s" % board.get("build.cpu"),
221+
]
219222

220223
env.Append(
221-
ASFLAGS=["-x", "assembler-with-cpp"],
224+
ASFLAGS=machine_flags,
225+
ASPPFLAGS=[
226+
"-x", "assembler-with-cpp",
227+
],
222228

223-
CCFLAGS=[
229+
CCFLAGS=machine_flags + [
224230
"-Os", # optimize for size
225231
"-ffunction-sections", # place each function in its own section
226232
"-fdata-sections",
227233
"-Wall",
228-
"-mthumb",
229-
"-mcpu=%s" % board.get("build.cpu"),
230234
"-nostdlib",
231235
],
232236

@@ -267,11 +271,9 @@ def process_dsp_lib():
267271
"-fno-exceptions"
268272
],
269273

270-
LINKFLAGS=[
274+
LINKFLAGS=machine_flags + [
271275
"-Os",
272276
"-Wl,--gc-sections,--relax",
273-
"-mthumb",
274-
"-mcpu=%s" % board.get("build.cpu"),
275277
"--specs=nano.specs",
276278
"--specs=nosys.specs",
277279
],
@@ -283,9 +285,6 @@ def process_dsp_lib():
283285
LIBS=["c", "gcc", "m", "stdc++", "nosys"],
284286
)
285287

286-
# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
287-
env.Append(ASFLAGS=env.get("CCFLAGS", [])[:])
288-
289288
if not board.get("build.ldscript", ""):
290289
env.Replace(LDSCRIPT_PATH=get_linker_script(
291290
board.get("build.mcu", ""), board.get("build.cpu", "")))

builder/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from SCons.Script import (ARGUMENTS, COMMAND_LINE_TARGETS, AlwaysBuild,
2121
Builder, Default, DefaultEnvironment)
2222

23-
from platformio.util import get_serial_ports
23+
from platformio.public import list_serial_ports
2424

2525

2626
def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
@@ -33,7 +33,7 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
3333
if not bool(upload_options.get("disable_flushing", False)):
3434
env.FlushSerialBuffer("$UPLOAD_PORT")
3535

36-
before_ports = get_serial_ports()
36+
before_ports = list_serial_ports()
3737

3838
if bool(upload_options.get("use_1200bps_touch", False)):
3939
env.TouchSerialPort("$UPLOAD_PORT", 1200)
@@ -43,7 +43,6 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
4343

4444

4545
env = DefaultEnvironment()
46-
env.SConscript("compat.py", exports="env")
4746
platform = env.PioPlatform()
4847
board = env.BoardConfig()
4948

examples/arduino-blink/.travis.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

examples/arduino-external-libs/.travis.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)