Skip to content

Commit 228b3d2

Browse files
committed
Merge branch 'release/v1.7.0'
2 parents fbb7cc8 + c4349b1 commit 228b3d2

File tree

7 files changed

+27
-26
lines changed

7 files changed

+27
-26
lines changed

.github/workflows/examples.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,23 @@ 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"
1514
runs-on: ${{ matrix.os }}
1615
steps:
17-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1817
with:
1918
submodules: "recursive"
20-
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v1
19+
- name: Set up Python
20+
uses: actions/setup-python@v3
2221
with:
23-
python-version: ${{ matrix.python-version }}
22+
python-version: "3.9"
2423
- name: Install dependencies
2524
run: |
26-
python -m pip install --upgrade pip
2725
pip install -U https://github.com/platformio/platformio/archive/develop.zip
28-
platformio platform install file://.
26+
pio pkg install --global --platform symlink://.
2927
- name: Build examples
3028
run: |
31-
platformio run -d ${{ matrix.example }}
29+
pio run -d ${{ matrix.example }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RP2040 is a low-cost, high-performance microcontroller device with a large on-ch
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/frameworks/_bare.py

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

2323
env.Append(
24-
ASFLAGS=["-x", "assembler-with-cpp"],
24+
ASFLAGS=[
25+
"-mthumb",
26+
],
27+
ASPPFLAGS=[
28+
"-x", "assembler-with-cpp",
29+
],
2530

2631
CCFLAGS=[
2732
"-Os", # optimize for size
@@ -54,13 +59,13 @@
5459

5560
if "BOARD" in env:
5661
env.Append(
62+
ASFLAGS=[
63+
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
64+
],
5765
CCFLAGS=[
5866
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
5967
],
6068
LINKFLAGS=[
6169
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
6270
]
6371
)
64-
65-
# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
66-
env.Append(ASFLAGS=env.get("CCFLAGS", [])[:])

builder/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from os import makedirs
1818
from os.path import isdir, join
1919

20-
from platformio.util import get_serial_ports
20+
from platformio.public import list_serial_ports
2121

2222
from SCons.Script import (ARGUMENTS, COMMAND_LINE_TARGETS, AlwaysBuild,
2323
Builder, Default, DefaultEnvironment)
@@ -29,7 +29,7 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
2929
upload_options = env.BoardConfig().get("upload", {})
3030

3131
env.AutodetectUploadPort()
32-
before_ports = get_serial_ports()
32+
before_ports = list_serial_ports()
3333

3434
if upload_options.get("use_1200bps_touch", False):
3535
env.TouchSerialPort("$UPLOAD_PORT", 1200)

platform.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"RP2040"
1313
],
1414
"engines": {
15-
"platformio": "^5"
15+
"platformio": "^6"
1616
},
1717
"repository": {
1818
"type": "git",
1919
"url": "https://github.com/platformio/platform-raspberrypi.git"
2020
},
21-
"version": "1.6.0",
21+
"version": "1.7.0",
2222
"frameworks": {
2323
"arduino": {
2424
"package": "framework-arduino-mbed",
@@ -35,7 +35,7 @@
3535
"type": "framework",
3636
"optional": true,
3737
"owner": "platformio",
38-
"version": "~3.0.1"
38+
"version": "~3.1.1"
3939
},
4040
"tool-rp2040tools": {
4141
"type": "uploader",

platform.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import copy
1615
import platform
1716

18-
from platformio.managers.platform import PlatformBase
17+
from platformio.public import PlatformBase
1918

2019

2120
class RaspberrypiPlatform(PlatformBase):
@@ -39,16 +38,16 @@ def configure_default_packages(self, variables, targets):
3938
if not any(jlink_conds) and jlink_pkgname in self.packages:
4039
del self.packages[jlink_pkgname]
4140

42-
return PlatformBase.configure_default_packages(self, variables, targets)
41+
return super().configure_default_packages(variables, targets)
4342

4443
def get_boards(self, id_=None):
45-
result = PlatformBase.get_boards(self, id_)
44+
result = super().get_boards(id_)
4645
if not result:
4746
return result
4847
if id_:
4948
return self._add_default_debug_tools(result)
5049
else:
51-
for key, value in result.items():
50+
for key in result:
5251
result[key] = self._add_default_debug_tools(result[key])
5352
return result
5453

@@ -102,7 +101,6 @@ def _add_default_debug_tools(self, board):
102101

103102
def configure_debug_session(self, debug_config):
104103
adapter_speed = debug_config.speed or "5000"
105-
106104
server_options = debug_config.server or {}
107105
server_arguments = server_options.get("arguments", [])
108106
if "interface/cmsis-dap.cfg" in server_arguments:

0 commit comments

Comments
 (0)