Skip to content

Commit 091af0e

Browse files
committed
Fix merge conflict
2 parents e920ef3 + e08da69 commit 091af0e

File tree

9 files changed

+34
-27
lines changed

9 files changed

+34
-27
lines changed

.github/workflows/examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
os: [ubuntu-18.04, windows-latest, macos-latest]
10+
os: [ubuntu-latest, windows-latest, macos-latest]
1111
python-version: [3.7]
1212
example:
1313
- "examples/arduino-blink"
@@ -25,7 +25,7 @@ jobs:
2525
run: |
2626
python -m pip install --upgrade pip
2727
pip install -U https://github.com/platformio/platformio/archive/develop.zip
28-
platformio platform install file://.
28+
pio pkg install --global --platform symlink://.
2929
- name: Build examples
3030
run: |
3131
platformio run -d ${{ matrix.example }}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
RP2040 is a low-cost, high-performance microcontroller device with a large on-chip memory, symmetric dual-core processor complex, deterministic bus fabric, and rich peripheral set augmented with a unique Programmable I/O (PIO) subsystem, it provides professional users with unrivalled power and flexibility.
66

7-
* [Home](http://platformio.org/platforms/raspberrypi) (home page in PlatformIO Platform Registry)
8-
* [Documentation](http://docs.platformio.org/page/platforms/raspberrypi.html) (advanced usage, packages, boards, frameworks, etc.)
7+
* [Home](https://registry.platformio.org/platforms/platformio/raspberrypi) (home page in the PlatformIO Registry)
8+
* [Documentation](https://docs.platformio.org/page/platforms/raspberrypi.html) (advanced usage, packages, boards, frameworks, etc.)
99

1010
# Usage
1111

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

1515
## Stable version
1616

@@ -32,4 +32,4 @@ board = ...
3232

3333
# Configuration
3434

35-
Please navigate to [documentation](http://docs.platformio.org/page/platforms/raspberrypi.html).
35+
Please navigate to [documentation](https://docs.platformio.org/page/platforms/raspberrypi.html).

builder/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ def _jlink_cmd_script(env, source):
378378
UPLOADER="openocd",
379379
UPLOADERFLAGS=openocd_args,
380380
UPLOADCMD="$UPLOADER $UPLOADERFLAGS")
381+
if not board.get("upload").get("offset_address"):
382+
upload_source = target_elf
381383
upload_actions = [env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")]
382384

383385
# custom upload tool

examples/arduino-blink/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
How to build PlatformIO based project
22
=====================================
33

4+
<<<<<<< HEAD
45
1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
6+
=======
7+
1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html)
8+
>>>>>>> e08da697f0a750d5ebdd17d299d262b729e67c42
59
2. Download [development platform with examples](https://github.com/platformio/platform-raspberrypi/archive/develop.zip)
610
3. Extract ZIP archive
711
4. Run these commands:

examples/arduino-blink/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
; Library options: dependencies, extra library storages
66
;
77
; Please visit documentation for the other options and examples
8-
; http://docs.platformio.org/page/projectconf.html
8+
; https://docs.platformio.org/page/projectconf.html
99

1010
[env]
1111
platform = raspberrypi

examples/arduino-external-libs/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
How to build PlatformIO based project
22
=====================================
33

4+
<<<<<<< HEAD
45
1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
6+
=======
7+
1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html)
8+
>>>>>>> e08da697f0a750d5ebdd17d299d262b729e67c42
59
2. Download [development platform with examples](https://github.com/platformio/platform-raspberrypi/archive/develop.zip)
610
3. Extract ZIP archive
711
4. Run these commands:

examples/arduino-external-libs/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
; Library options: dependencies, extra library storages
66
;
77
; Please visit documentation for the other options and examples
8-
; http://docs.platformio.org/page/projectconf.html
8+
; https://docs.platformio.org/page/projectconf.html
99

1010
[env]
1111
platform = raspberrypi

platform.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "raspberrypi",
33
"title": "Raspberry Pi RP2040",
4-
"description": "RP2040 is a low-cost, high-performance microcontroller device with with a large on-chip memory, symmetric dual-core processor complex, and rich peripheral.",
4+
"description": "RP2040 is a low-cost, high-performance microcontroller device with a large on-chip memory, symmetric dual-core processor complex, and rich peripheral.",
55
"homepage": "https://www.raspberrypi.org/documentation/rp2040/getting-started/",
66
"license": "Apache-2.0",
77
"keywords": [
@@ -18,7 +18,7 @@
1818
"type": "git",
1919
"url": "https://github.com/platformio/platform-raspberrypi.git"
2020
},
21-
"version": "1.5.0",
21+
"version": "1.6.0",
2222
"frameworks": {
2323
"arduino": {
2424
"package": "framework-arduino-mbed",
@@ -41,7 +41,7 @@
4141
"type": "framework",
4242
"optional": true,
4343
"owner": "platformio",
44-
"version": "~2.6.0"
44+
"version": "~3.0.1"
4545
},
4646
"framework-arduinopico": {
4747
"type": "framework",

platform.py

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,16 @@ def _add_default_debug_tools(self, board):
129129
board.manifest["debug"] = debug
130130
return board
131131

132-
def configure_debug_options(self, initial_debug_options, ide_data):
133-
debug_options = copy.deepcopy(initial_debug_options)
134-
adapter_speed = initial_debug_options.get("speed", "5000")
135-
if adapter_speed:
136-
server_options = debug_options.get("server") or {}
137-
server_executable = server_options.get("executable", "").lower()
138-
if "target/cmsis-dap.cfg" in server_options.get("arguments", []):
139-
debug_options["server"]["arguments"].extend(
140-
["-c", "adapter_khz %s" % adapter_speed]
141-
)
142-
elif "jlink" in server_executable:
143-
debug_options["server"]["arguments"].extend(
144-
["-speed", adapter_speed]
145-
)
146-
147-
return debug_options
132+
def configure_debug_session(self, debug_config):
133+
adapter_speed = debug_config.speed or "5000"
134+
135+
server_options = debug_config.server or {}
136+
server_arguments = server_options.get("arguments", [])
137+
if "interface/cmsis-dap.cfg" in server_arguments:
138+
server_arguments.extend(
139+
["-c", "adapter speed %s" % adapter_speed]
140+
)
141+
elif "jlink" in server_options.get("executable", "").lower():
142+
server_arguments.extend(
143+
["-speed", adapter_speed]
144+
)

0 commit comments

Comments
 (0)