Merge branch 'release/v1.6.0'

This commit is contained in:
Ivan Kravets 2022-04-01 12:46:07 +03:00
commit fbb7cc8183
8 changed files with 26 additions and 27 deletions

View File

@ -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. 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) * [Home](https://registry.platformio.org/platforms/platformio/raspberrypi) (home page in the PlatformIO Registry)
* [Documentation](http://docs.platformio.org/page/platforms/raspberrypi.html) (advanced usage, packages, boards, frameworks, etc.) * [Documentation](https://docs.platformio.org/page/platforms/raspberrypi.html) (advanced usage, packages, boards, frameworks, etc.)
# Usage # Usage
1. [Install PlatformIO](http://platformio.org) 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 ## Stable version
@ -32,4 +32,4 @@ board = ...
# Configuration # 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).

View File

@ -222,6 +222,8 @@ elif upload_protocol in debug_tools:
UPLOADER="openocd", UPLOADER="openocd",
UPLOADERFLAGS=openocd_args, UPLOADERFLAGS=openocd_args,
UPLOADCMD="$UPLOADER $UPLOADERFLAGS") UPLOADCMD="$UPLOADER $UPLOADERFLAGS")
if not board.get("upload").get("offset_address"):
upload_source = target_elf
upload_actions = [env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")] upload_actions = [env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")]
# custom upload tool # custom upload tool

View File

@ -1,7 +1,7 @@
How to build PlatformIO based project 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) 2. Download [development platform with examples](https://github.com/platformio/platform-raspberrypi/archive/develop.zip)
3. Extract ZIP archive 3. Extract ZIP archive
4. Run these commands: 4. Run these commands:

View File

@ -5,7 +5,7 @@
; Library options: dependencies, extra library storages ; Library options: dependencies, extra library storages
; ;
; Please visit documentation for the other options and examples ; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[env] [env]
platform = raspberrypi platform = raspberrypi

View File

@ -1,7 +1,7 @@
How to build PlatformIO based project 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) 2. Download [development platform with examples](https://github.com/platformio/platform-raspberrypi/archive/develop.zip)
3. Extract ZIP archive 3. Extract ZIP archive
4. Run these commands: 4. Run these commands:

View File

@ -5,7 +5,7 @@
; Library options: dependencies, extra library storages ; Library options: dependencies, extra library storages
; ;
; Please visit documentation for the other options and examples ; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[env] [env]
platform = raspberrypi platform = raspberrypi

View File

@ -1,7 +1,7 @@
{ {
"name": "raspberrypi", "name": "raspberrypi",
"title": "Raspberry Pi RP2040", "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/", "homepage": "https://www.raspberrypi.org/documentation/rp2040/getting-started/",
"license": "Apache-2.0", "license": "Apache-2.0",
"keywords": [ "keywords": [
@ -18,7 +18,7 @@
"type": "git", "type": "git",
"url": "https://github.com/platformio/platform-raspberrypi.git" "url": "https://github.com/platformio/platform-raspberrypi.git"
}, },
"version": "1.5.0", "version": "1.6.0",
"frameworks": { "frameworks": {
"arduino": { "arduino": {
"package": "framework-arduino-mbed", "package": "framework-arduino-mbed",
@ -35,7 +35,7 @@
"type": "framework", "type": "framework",
"optional": true, "optional": true,
"owner": "platformio", "owner": "platformio",
"version": "~2.6.0" "version": "~3.0.1"
}, },
"tool-rp2040tools": { "tool-rp2040tools": {
"type": "uploader", "type": "uploader",

View File

@ -100,19 +100,16 @@ class RaspberrypiPlatform(PlatformBase):
board.manifest["debug"] = debug board.manifest["debug"] = debug
return board return board
def configure_debug_options(self, initial_debug_options, ide_data): def configure_debug_session(self, debug_config):
debug_options = copy.deepcopy(initial_debug_options) adapter_speed = debug_config.speed or "5000"
adapter_speed = initial_debug_options.get("speed", "5000")
if adapter_speed: server_options = debug_config.server or {}
server_options = debug_options.get("server") or {} server_arguments = server_options.get("arguments", [])
server_executable = server_options.get("executable", "").lower() if "interface/cmsis-dap.cfg" in server_arguments:
if "target/cmsis-dap.cfg" in server_options.get("arguments", []): server_arguments.extend(
debug_options["server"]["arguments"].extend( ["-c", "adapter speed %s" % adapter_speed]
["-c", "adapter_khz %s" % adapter_speed] )
) elif "jlink" in server_options.get("executable", "").lower():
elif "jlink" in server_executable: server_arguments.extend(
debug_options["server"]["arguments"].extend( ["-speed", adapter_speed]
["-speed", adapter_speed] )
)
return debug_options