From bda63536970c0f7279e79440e730ca2e0f5205f2 Mon Sep 17 00:00:00 2001 From: Valerii Koval Date: Thu, 20 Jan 2022 20:52:19 +0200 Subject: [PATCH 1/7] Typo fix in platform description Fixes platformio/platformio-docs#229 --- platform.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.json b/platform.json index 5f41c09..043c0f6 100644 --- a/platform.json +++ b/platform.json @@ -1,7 +1,7 @@ { "name": "raspberrypi", "title": "Raspberry Pi RP2040", - "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.", + "description": "RP2040 is a low-cost, high-performance microcontroller device with a large on-chip memory, symmetric dual-core processor complex, and rich peripheral.", "homepage": "https://www.raspberrypi.org/documentation/rp2040/getting-started/", "license": "Apache-2.0", "keywords": [ From eca3b40879aace058e2b30fd49a1b7c61aad29c9 Mon Sep 17 00:00:00 2001 From: Valerii Koval Date: Mon, 21 Feb 2022 16:50:14 +0200 Subject: [PATCH 2/7] Update Arduino-mbed core to v2.7.2 --- platform.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.json b/platform.json index 043c0f6..4dad7ea 100644 --- a/platform.json +++ b/platform.json @@ -35,7 +35,7 @@ "type": "framework", "optional": true, "owner": "platformio", - "version": "~2.6.0" + "version": "~2.7.0" }, "tool-rp2040tools": { "type": "uploader", From d825c1e5313c0fb990ab970b337e743b56ead24c Mon Sep 17 00:00:00 2001 From: Philipp Serr Date: Sat, 26 Feb 2022 22:19:25 +0100 Subject: [PATCH 3/7] Use *.elf instead of *.bin if no offset given --- builder/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builder/main.py b/builder/main.py index d34c935..0854f09 100644 --- a/builder/main.py +++ b/builder/main.py @@ -222,6 +222,8 @@ elif upload_protocol in debug_tools: UPLOADER="openocd", UPLOADERFLAGS=openocd_args, UPLOADCMD="$UPLOADER $UPLOADERFLAGS") + if not board.get("upload").get("offset_address"): + upload_source = target_elf upload_actions = [env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")] # custom upload tool From 01a0447aa7e467e59c2e24c16004e3e381565418 Mon Sep 17 00:00:00 2001 From: Philipp Serr Date: Fri, 11 Mar 2022 08:55:44 +0100 Subject: [PATCH 4/7] Configure debug session as required for pio 5.2+ See also https://github.com/platformio/platformio-core/issues/4020 Additionally, this commit replaces deprecated openocd option `adapter_khz` with `adapter speed` --- platform.py | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/platform.py b/platform.py index c4e29da..bd68da0 100644 --- a/platform.py +++ b/platform.py @@ -100,19 +100,16 @@ class RaspberrypiPlatform(PlatformBase): board.manifest["debug"] = debug return board - def configure_debug_options(self, initial_debug_options, ide_data): - debug_options = copy.deepcopy(initial_debug_options) - adapter_speed = initial_debug_options.get("speed", "5000") - if adapter_speed: - server_options = debug_options.get("server") or {} - server_executable = server_options.get("executable", "").lower() - if "target/cmsis-dap.cfg" in server_options.get("arguments", []): - debug_options["server"]["arguments"].extend( - ["-c", "adapter_khz %s" % adapter_speed] - ) - elif "jlink" in server_executable: - debug_options["server"]["arguments"].extend( - ["-speed", adapter_speed] - ) - - return debug_options + def configure_debug_session(self, debug_config): + adapter_speed = debug_config.speed or "5000" + + server_options = debug_config.server or {} + server_arguments = server_options.get("arguments", []) + if "interface/cmsis-dap.cfg" in server_arguments: + server_arguments.extend( + ["-c", "adapter speed %s" % adapter_speed] + ) + elif "jlink" in server_options.get("executable", "").lower(): + server_arguments.extend( + ["-speed", adapter_speed] + ) From 458dfacd2ffa6cac19895feb92e279774c1d362e Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 31 Mar 2022 14:23:40 +0300 Subject: [PATCH 5/7] Switch docs to HTTP --- README.md | 8 ++++---- examples/arduino-blink/README.md | 2 +- examples/arduino-blink/platformio.ini | 2 +- examples/arduino-external-libs/README.md | 2 +- examples/arduino-external-libs/platformio.ini | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c1137a0..47b4217 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,13 @@ 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. -* [Home](http://platformio.org/platforms/raspberrypi) (home page in PlatformIO Platform Registry) -* [Documentation](http://docs.platformio.org/page/platforms/raspberrypi.html) (advanced usage, packages, boards, frameworks, etc.) +* [Home](https://registry.platformio.org/platforms/platformio/raspberrypi) (home page in the PlatformIO Registry) +* [Documentation](https://docs.platformio.org/page/platforms/raspberrypi.html) (advanced usage, packages, boards, frameworks, etc.) # Usage 1. [Install PlatformIO](http://platformio.org) -2. Create PlatformIO project and configure a platform option in [platformio.ini](http://docs.platformio.org/page/projectconf.html) file: +2. Create PlatformIO project and configure a platform option in [platformio.ini](https://docs.platformio.org/page/projectconf.html) file: ## Stable version @@ -32,4 +32,4 @@ board = ... # Configuration -Please navigate to [documentation](http://docs.platformio.org/page/platforms/raspberrypi.html). +Please navigate to [documentation](https://docs.platformio.org/page/platforms/raspberrypi.html). diff --git a/examples/arduino-blink/README.md b/examples/arduino-blink/README.md index 1e354e0..6eb4be3 100644 --- a/examples/arduino-blink/README.md +++ b/examples/arduino-blink/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-raspberrypi/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/arduino-blink/platformio.ini b/examples/arduino-blink/platformio.ini index 4eb1a0f..9a51012 100644 --- a/examples/arduino-blink/platformio.ini +++ b/examples/arduino-blink/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [env] platform = raspberrypi diff --git a/examples/arduino-external-libs/README.md b/examples/arduino-external-libs/README.md index 8aa6a5f..e03a9e4 100644 --- a/examples/arduino-external-libs/README.md +++ b/examples/arduino-external-libs/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-raspberrypi/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/arduino-external-libs/platformio.ini b/examples/arduino-external-libs/platformio.ini index d85852f..a2964b8 100644 --- a/examples/arduino-external-libs/platformio.ini +++ b/examples/arduino-external-libs/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [env] platform = raspberrypi From a05a0c65e32b95291be630ee8d4d6523c615a671 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 31 Mar 2022 17:29:36 +0300 Subject: [PATCH 6/7] Update Arduino-mbed core to v3.0.1 --- platform.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.json b/platform.json index 4dad7ea..f4282c1 100644 --- a/platform.json +++ b/platform.json @@ -35,7 +35,7 @@ "type": "framework", "optional": true, "owner": "platformio", - "version": "~2.7.0" + "version": "~3.0.1" }, "tool-rp2040tools": { "type": "uploader", From 5806c57b9c0832b4c16de1276f8a271d0192f2c7 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 1 Apr 2022 12:46:01 +0300 Subject: [PATCH 7/7] Bump version to 1.6.0 --- platform.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.json b/platform.json index f4282c1..4ab2f54 100644 --- a/platform.json +++ b/platform.json @@ -18,7 +18,7 @@ "type": "git", "url": "https://github.com/platformio/platform-raspberrypi.git" }, - "version": "1.5.0", + "version": "1.6.0", "frameworks": { "arduino": { "package": "framework-arduino-mbed",