Skip to content

Commit fbb7cc8

Browse files
committed
Merge branch 'release/v1.6.0'
2 parents e5579ce + 5806c57 commit fbb7cc8

File tree

8 files changed

+26
-27
lines changed

8 files changed

+26
-27
lines changed

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
@@ -222,6 +222,8 @@ def _jlink_cmd_script(env, source):
222222
UPLOADER="openocd",
223223
UPLOADERFLAGS=openocd_args,
224224
UPLOADCMD="$UPLOADER $UPLOADERFLAGS")
225+
if not board.get("upload").get("offset_address"):
226+
upload_source = target_elf
225227
upload_actions = [env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")]
226228

227229
# custom upload tool

examples/arduino-blink/README.md

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

4-
1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
4+
1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html)
55
2. Download [development platform with examples](https://github.com/platformio/platform-raspberrypi/archive/develop.zip)
66
3. Extract ZIP archive
77
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
How to build PlatformIO based project
22
=====================================
33

4-
1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
4+
1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html)
55
2. Download [development platform with examples](https://github.com/platformio/platform-raspberrypi/archive/develop.zip)
66
3. Extract ZIP archive
77
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",
@@ -35,7 +35,7 @@
3535
"type": "framework",
3636
"optional": true,
3737
"owner": "platformio",
38-
"version": "~2.6.0"
38+
"version": "~3.0.1"
3939
},
4040
"tool-rp2040tools": {
4141
"type": "uploader",

platform.py

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

103-
def configure_debug_options(self, initial_debug_options, ide_data):
104-
debug_options = copy.deepcopy(initial_debug_options)
105-
adapter_speed = initial_debug_options.get("speed", "5000")
106-
if adapter_speed:
107-
server_options = debug_options.get("server") or {}
108-
server_executable = server_options.get("executable", "").lower()
109-
if "target/cmsis-dap.cfg" in server_options.get("arguments", []):
110-
debug_options["server"]["arguments"].extend(
111-
["-c", "adapter_khz %s" % adapter_speed]
112-
)
113-
elif "jlink" in server_executable:
114-
debug_options["server"]["arguments"].extend(
115-
["-speed", adapter_speed]
116-
)
117-
118-
return debug_options
103+
def configure_debug_session(self, debug_config):
104+
adapter_speed = debug_config.speed or "5000"
105+
106+
server_options = debug_config.server or {}
107+
server_arguments = server_options.get("arguments", [])
108+
if "interface/cmsis-dap.cfg" in server_arguments:
109+
server_arguments.extend(
110+
["-c", "adapter speed %s" % adapter_speed]
111+
)
112+
elif "jlink" in server_options.get("executable", "").lower():
113+
server_arguments.extend(
114+
["-speed", adapter_speed]
115+
)

0 commit comments

Comments
 (0)