From 7b48a72f89cd843a30c3d73987c5be116833bfab Mon Sep 17 00:00:00 2001 From: valeros Date: Fri, 6 Aug 2021 21:07:53 +0300 Subject: [PATCH 1/4] Simplify paths to platform tools to handle whitespaces Resolve #16 --- builder/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/main.py b/builder/main.py index 4576448..6ac6086 100644 --- a/builder/main.py +++ b/builder/main.py @@ -43,7 +43,7 @@ def generate_uf2(target, source, env): env.Execute( " ".join( [ - join(platform.get_package_dir("tool-rp2040tools") or "", "elf2uf2"), + "elf2uf2", '"%s"' % elf_file, '"%s"' % elf_file.replace(".elf", ".uf2"), ] @@ -154,7 +154,7 @@ if upload_protocol == "mbed": ] elif upload_protocol == "picotool": env.Replace( - UPLOADER=join(platform.get_package_dir("tool-rp2040tools") or "", "rp2040load"), + UPLOADER="rp2040load", UPLOADERFLAGS=["-v", "-D"], UPLOADCMD="$UPLOADER $UPLOADERFLAGS $SOURCES" ) From 39b2ae9785c7becfd5d1fbb29f31a83bea29d045 Mon Sep 17 00:00:00 2001 From: valeros Date: Tue, 17 Aug 2021 13:45:38 +0300 Subject: [PATCH 2/4] Update Arduino-mbed package to v2.4.1 Resolve #17 --- platform.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.json b/platform.json index d7c8569..79fd86f 100644 --- a/platform.json +++ b/platform.json @@ -35,7 +35,7 @@ "type": "framework", "optional": true, "owner": "platformio", - "version": "~2.3.0" + "version": "~2.4.0" }, "tool-rp2040tools": { "type": "uploader", From 5fd0124b33f8a49dfde2adcd3135e335feb32fa1 Mon Sep 17 00:00:00 2001 From: valeros Date: Thu, 19 Aug 2021 12:03:16 +0300 Subject: [PATCH 3/4] Use full path to upload tools // Issue #16 --- builder/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/main.py b/builder/main.py index 6ac6086..d34c935 100644 --- a/builder/main.py +++ b/builder/main.py @@ -154,9 +154,9 @@ if upload_protocol == "mbed": ] elif upload_protocol == "picotool": env.Replace( - UPLOADER="rp2040load", + UPLOADER=join(platform.get_package_dir("tool-rp2040tools") or "", "rp2040load"), UPLOADERFLAGS=["-v", "-D"], - UPLOADCMD="$UPLOADER $UPLOADERFLAGS $SOURCES" + UPLOADCMD='"$UPLOADER" $UPLOADERFLAGS $SOURCES' ) upload_actions = [ From 8e0001450d5c20a622ede6139184a59dab04da5f Mon Sep 17 00:00:00 2001 From: valeros Date: Tue, 31 Aug 2021 16:07:05 +0300 Subject: [PATCH 4/4] Bump version to 1.3.0 --- platform.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.json b/platform.json index 79fd86f..d41d11c 100644 --- a/platform.json +++ b/platform.json @@ -18,7 +18,7 @@ "type": "git", "url": "https://github.com/platformio/platform-raspberrypi.git" }, - "version": "1.2.0", + "version": "1.3.0", "frameworks": { "arduino": { "package": "framework-arduino-mbed",