Merge branch 'platformio-develop' into develop
This commit is contained in:
commit
2b15f395c7
4
.github/workflows/examples.yml
vendored
4
.github/workflows/examples.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-18.04, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
python-version: [3.7]
|
python-version: [3.7]
|
||||||
example:
|
example:
|
||||||
- "examples/arduino-blink"
|
- "examples/arduino-blink"
|
||||||
@ -25,7 +25,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -U https://github.com/platformio/platformio/archive/develop.zip
|
pip install -U https://github.com/platformio/platformio/archive/develop.zip
|
||||||
platformio platform install file://.
|
pio pkg install --global --platform symlink://.
|
||||||
- name: Build examples
|
- name: Build examples
|
||||||
run: |
|
run: |
|
||||||
platformio run -d ${{ matrix.example }}
|
platformio run -d ${{ matrix.example }}
|
||||||
|
@ -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).
|
||||||
|
@ -378,6 +378,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
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
How to build PlatformIO based project
|
How to build PlatformIO based project
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
|
1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
|
||||||
|
=======
|
||||||
|
1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html)
|
||||||
|
>>>>>>> e08da697f0a750d5ebdd17d299d262b729e67c42
|
||||||
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:
|
||||||
|
@ -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
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
How to build PlatformIO based project
|
How to build PlatformIO based project
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
|
1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
|
||||||
|
=======
|
||||||
|
1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html)
|
||||||
|
>>>>>>> e08da697f0a750d5ebdd17d299d262b729e67c42
|
||||||
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:
|
||||||
|
@ -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
|
||||||
|
@ -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",
|
||||||
@ -41,7 +41,7 @@
|
|||||||
"type": "framework",
|
"type": "framework",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"owner": "platformio",
|
"owner": "platformio",
|
||||||
"version": "~2.6.0"
|
"version": "~3.0.1"
|
||||||
},
|
},
|
||||||
"framework-arduinopico": {
|
"framework-arduinopico": {
|
||||||
"type": "framework",
|
"type": "framework",
|
||||||
|
29
platform.py
29
platform.py
@ -129,19 +129,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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user