Skip to content

Commit c4b6521

Browse files
Add wiznet_5100s_evb_pico2, wiznet_5500_evb_pico2 (#2575)
Add 2 new WIZNet Pico2 boards, same pinouts as Pico revs. Fixes #2574
1 parent 593b3be commit c4b6521

File tree

10 files changed

+605
-2
lines changed

10 files changed

+605
-2
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ Read the [Contributing Guide](https://github.com/earlephilhower/arduino-pico/blo
102102
* Waveshare RP2040 Matrix
103103
* Waveshare RP2040 PiZero
104104
* WIZnet W5100S-EVB-Pico
105+
* WIZnet W5100S-EVB-Pico2
105106
* WIZnet W5500-EVB-Pico
107+
* WIZnet W5500-EVB-Pico2
106108
* WIZnet W55RP20-EVB-Pico
107109
* WIZnet WizFi360-EVB-Pico
108110
* Generic RP2040 (configurable flash, I/O pins)

boards.txt

+474
Large diffs are not rendered by default.

libraries/lwIP_w5100/examples/WiFiClient-W5100/WiFiClient-W5100.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
const char* host = "djxmmx.net";
99
const uint16_t port = 17;
1010

11-
#ifdef ARDUINO_WIZNET_5100S_EVB_PICO
11+
#if defined(ARDUINO_WIZNET_5100S_EVB_PICO) || defined(ARDUINO_WIZNET_5100S_EVB_PICO2)
1212
// To use Interrupt-driven mode, pass in an SPI object and an IRQ pin like so:
1313
Wiznet5100lwIP eth(17, SPI, 21);
1414
#else
1515
Wiznet5100lwIP eth(1 /* chip select */);
1616
#endif
1717

1818
void setup() {
19-
#ifndef ARDUINO_WIZNET_5100S_EVB_PICO
19+
#if !defined(ARDUINO_WIZNET_5100S_EVB_PICO) && !defined(ARDUINO_WIZNET_5100S_EVB_PICO2)
2020
// Set up SPI pinout to match your HW
2121
SPI.setRX(0);
2222
SPI.setCS(1);

libraries/lwIP_w5500/examples/WiFiClient-W5500/WiFiClient-W5500.ino

+7
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,21 @@
88
const char* host = "djxmmx.net";
99
const uint16_t port = 17;
1010

11+
#if defined(ARDUINO_WIZNET_5500_EVB_PICO) || defined(ARDUINO_WIZNET_5500_EVB_PICO2)
12+
// To use Interrupt-driven mode, pass in an SPI object and an IRQ pin like so:
13+
Wiznet5500lwIP eth(17, SPI, 21);
14+
#else
1115
Wiznet5500lwIP eth(1 /* chip select */);
16+
#endif
1217

1318
void setup() {
19+
#if !defined(ARDUINO_WIZNET_5500_EVB_PICO) && !defined(ARDUINO_WIZNET_5500_EVB_PICO2)
1420
// Set up SPI pinout to match your HW
1521
SPI.setRX(0);
1622
SPI.setCS(1);
1723
SPI.setSCK(2);
1824
SPI.setTX(3);
25+
#endif
1926

2027
Serial.begin(115200);
2128
delay(5000);

package/package_pico_index.template.json

+6
Original file line numberDiff line numberDiff line change
@@ -326,12 +326,18 @@
326326
{
327327
"name": "WIZnet W5100S-EVB-Pico"
328328
},
329+
{
330+
"name": "WIZnet W5100S-EVB-Pico2"
331+
},
329332
{
330333
"name": "WIZnet WizFi360-EVB-Pico"
331334
},
332335
{
333336
"name": "WIZnet W5500-EVB-Pico"
334337
},
338+
{
339+
"name": "WIZnet W5500-EVB-Pico2"
340+
},
335341
{
336342
"name": "WIZnet W55RP20-EVB-Pico"
337343
},
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"build": {
3+
"arduino": {
4+
"earlephilhower": {
5+
"boot2_source": "none.S",
6+
"usb_vid": "0x2E8A",
7+
"usb_pid": "0x1027"
8+
}
9+
},
10+
"core": "earlephilhower",
11+
"cpu": "cortex-m33",
12+
"extra_flags": "-DARDUINO_WIZNET_5100S_EVB_PICO2 -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 ",
13+
"f_cpu": "150000000L",
14+
"hwids": [
15+
[
16+
"0x2E8A",
17+
"0x00C0"
18+
],
19+
[
20+
"0x2E8A",
21+
"0x1027"
22+
]
23+
],
24+
"mcu": "rp2350",
25+
"variant": "wiznet_5100s_evb_pico2"
26+
},
27+
"debug": {
28+
"jlink_device": "RP2350_0",
29+
"openocd_target": "rp2350.cfg",
30+
"svd_path": "rp2350.svd"
31+
},
32+
"frameworks": [
33+
"arduino"
34+
],
35+
"name": "W5100S-EVB-Pico2",
36+
"upload": {
37+
"maximum_ram_size": 524288,
38+
"maximum_size": 2097152,
39+
"require_upload_port": true,
40+
"native_usb": true,
41+
"use_1200bps_touch": true,
42+
"wait_for_upload_port": false,
43+
"protocol": "picotool",
44+
"protocols": [
45+
"blackmagic",
46+
"cmsis-dap",
47+
"jlink",
48+
"raspberrypi-swd",
49+
"picotool",
50+
"picoprobe"
51+
]
52+
},
53+
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
54+
"vendor": "WIZnet"
55+
}

tools/json/wiznet_5500_evb_pico2.json

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"build": {
3+
"arduino": {
4+
"earlephilhower": {
5+
"boot2_source": "none.S",
6+
"usb_vid": "0x2E8A",
7+
"usb_pid": "0x1029"
8+
}
9+
},
10+
"core": "earlephilhower",
11+
"cpu": "cortex-m33",
12+
"extra_flags": "-DARDUINO_WIZNET_5500_EVB_PICO2 -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 ",
13+
"f_cpu": "150000000L",
14+
"hwids": [
15+
[
16+
"0x2E8A",
17+
"0x00C0"
18+
],
19+
[
20+
"0x2E8A",
21+
"0x1029"
22+
]
23+
],
24+
"mcu": "rp2350",
25+
"variant": "wiznet_5500_evb_pico2"
26+
},
27+
"debug": {
28+
"jlink_device": "RP2350_0",
29+
"openocd_target": "rp2350.cfg",
30+
"svd_path": "rp2350.svd"
31+
},
32+
"frameworks": [
33+
"arduino"
34+
],
35+
"name": "W5500-EVB-Pico2",
36+
"upload": {
37+
"maximum_ram_size": 524288,
38+
"maximum_size": 2097152,
39+
"require_upload_port": true,
40+
"native_usb": true,
41+
"use_1200bps_touch": true,
42+
"wait_for_upload_port": false,
43+
"protocol": "picotool",
44+
"protocols": [
45+
"blackmagic",
46+
"cmsis-dap",
47+
"jlink",
48+
"raspberrypi-swd",
49+
"picotool",
50+
"picoprobe"
51+
]
52+
},
53+
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
54+
"vendor": "WIZnet"
55+
}

tools/makeboards.py

+2
Original file line numberDiff line numberDiff line change
@@ -657,8 +657,10 @@ def MakeBoardJSON(name, chip, vendor_name, product_name, vid, pid, pwr, boarddef
657657

658658
# WIZnet
659659
MakeBoard("wiznet_5100s_evb_pico", "rp2040", "WIZnet", "W5100S-EVB-Pico", "0x2e8a", "0x1027", 250, "WIZNET_5100S_EVB_PICO", 2, 0, "boot2_w25q080_2_padded_checksum")
660+
MakeBoard("wiznet_5100s_evb_pico2", "rp2350", "WIZnet", "W5100S-EVB-Pico2", "0x2e8a", "0x1027", 250, "WIZNET_5100S_EVB_PICO2", 2, 0, "none")
660661
MakeBoard("wiznet_wizfi360_evb_pico", "rp2040", "WIZnet", "WizFi360-EVB-Pico", "0x2e8a", "0x1028", 250, "WIZNET_WIZFI360_EVB_PICO", 2, 0, "boot2_w25q080_2_padded_checksum")
661662
MakeBoard("wiznet_5500_evb_pico", "rp2040", "WIZnet", "W5500-EVB-Pico", "0x2e8a", "0x1029", 250, "WIZNET_5500_EVB_PICO", 2, 0, "boot2_w25q080_2_padded_checksum")
663+
MakeBoard("wiznet_5500_evb_pico2", "rp2350", "WIZnet", "W5500-EVB-Pico2", "0x2e8a", "0x1029", 250, "WIZNET_5500_EVB_PICO2", 2, 0, "none")
662664
MakeBoard("wiznet_55rp20_evb_pico", "rp2040", "WIZnet", "W55RP20-EVB-Pico", "0x2e8a", "0x1029", 250, "WIZNET_55RP20_EVB_PICO", 2, 0, "boot2_w25q080_2_padded_checksum")
663665

664666
# Generic
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "../generic/pins_arduino.h"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "../generic/pins_arduino.h"

0 commit comments

Comments
 (0)