Skip to content

Commit

Permalink
WiFi support for RP2350 boards
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt committed Nov 19, 2024
1 parent 5e4e06b commit 72b6176
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 2 deletions.
56 changes: 56 additions & 0 deletions boards/pimoroni_pico_plus_2w.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"build": {
"arduino": {
"earlephilhower": {
"boot2_source": "none.S",
"usb_vid": "0x2E8A",
"usb_pid": "0x100A"
}
},
"core": "earlephilhower",
"cpu": "cortex-m33",
"extra_flags": "-DARDUINO_PIMORONI_PICO_PLUS_2W -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=500 -DPICO_CYW43_SUPPORTED=1 -DCYW43_PIN_WL_DYNAMIC=1",
"f_cpu": "150000000L",
"hwids": [
[
"0x2E8A",
"0x00C0"
],
[
"0x2E8A",
"0x100A"
]
],
"mcu": "rp2350",
"variant": "pimoroni_pico_plus_2w"
},
"debug": {
"jlink_device": "RP2350_0",
"openocd_target": "rp2350.cfg",
"svd_path": "rp2350.svd"
},
"frameworks": [
"arduino"
],
"name": "PicoPlus2W",
"upload": {
"maximum_ram_size": 524288,
"maximum_size": 16777216,
"require_upload_port": true,
"native_usb": true,
"use_1200bps_touch": true,
"wait_for_upload_port": false,
"protocol": "picotool",
"protocols": [
"blackmagic",
"cmsis-dap",
"jlink",
"raspberrypi-swd",
"picotool",
"picoprobe"
],
"psram_length": 8388608
},
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
"vendor": "Pimoroni"
}
2 changes: 1 addition & 1 deletion boards/rpipicow.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"core": "earlephilhower",
"cpu": "cortex-m0plus",
"extra_flags": "-DARDUINO_RASPBERRY_PI_PICO_W -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 ",
"extra_flags": "-DARDUINO_RASPBERRY_PI_PICO_W -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 -DPICO_CYW43_SUPPORTED=1 -DCYW43_PIN_WL_DYNAMIC=1",
"f_cpu": "133000000L",
"hwids": [
[
Expand Down
56 changes: 56 additions & 0 deletions boards/sparkfun_thingplusrp2350.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"build": {
"arduino": {
"earlephilhower": {
"boot2_source": "none.S",
"usb_vid": "0x1B4F",
"usb_pid": "0x0038"
}
},
"core": "earlephilhower",
"cpu": "cortex-m33",
"extra_flags": "-DARDUINO_SPARKFUN_THINGPLUS_RP2350 -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 -DPICO_CYW43_SUPPORTED=1 -DCYW43_PIN_WL_DYNAMIC=1",
"f_cpu": "150000000L",
"hwids": [
[
"0x2E8A",
"0x00C0"
],
[
"0x1B4F",
"0x0038"
]
],
"mcu": "rp2350",
"variant": "sparkfun_thingplusrp2350"
},
"debug": {
"jlink_device": "RP2350_0",
"openocd_target": "rp2350.cfg",
"svd_path": "rp2350.svd"
},
"frameworks": [
"arduino"
],
"name": "Thing Plus RP2350",
"upload": {
"maximum_ram_size": 524288,
"maximum_size": 16777216,
"require_upload_port": true,
"native_usb": true,
"use_1200bps_touch": true,
"wait_for_upload_port": false,
"protocol": "picotool",
"protocols": [
"blackmagic",
"cmsis-dap",
"jlink",
"raspberrypi-swd",
"picotool",
"picoprobe"
],
"psram_length": 8388608
},
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
"vendor": "SparkFun"
}
7 changes: 7 additions & 0 deletions examples/arduino-wifi-scan/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@
platform = raspberrypi
framework = arduino

; RP2040 based
[env:rpipicow]
board = rpipicow

; RP2350 based
[env:pimoroni_pico_plus_2w]
board = pimoroni_pico_plus_2w
; if uncommented, selects RISC-V instead of ARM
;board_build.mcu = rp2350-riscv
2 changes: 1 addition & 1 deletion platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"type": "framework",
"optional": true,
"owner": "earlephilhower",
"version": "https://github.com/earlephilhower/arduino-pico.git#c4b6521849570c465e073255c983941dc6adf4fb"
"version": "https://github.com/earlephilhower/arduino-pico.git#e25d382732173fb9bebe153c3c4948556c7e03bc"
},
"framework-picosdk": {
"type": "framework",
Expand Down

0 comments on commit 72b6176

Please sign in to comment.