Skip to content

Commit dba8f17

Browse files
authored
Add Soldered NULA RP2350 board (#3138)
1 parent 4d8bb44 commit dba8f17

File tree

8 files changed

+611
-0
lines changed

8 files changed

+611
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Read the [Contributing Guide](https://github.com/earlephilhower/arduino-pico/blo
100100
* Solder Party RP2040 Stamp
101101
* Solder Party RP2350 Stamp
102102
* Solder Party RP2350 Stamp XL
103+
* Soldered Electronics NULA RP2350
103104
* SparkFun IoT RedBoard RP2350
104105
* SparkFun MicroMod RP2040
105106
* SparkFun ProMicro RP2040

boards.txt

Lines changed: 352 additions & 0 deletions
Large diffs are not rendered by default.

package/package_pico_index.template.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@
314314
{
315315
"name": "Solder Party RP2350 Stamp XL"
316316
},
317+
{
318+
"name": "Soldered Electronics NULA RP2350"
319+
},
317320
{
318321
"name": "SparkFun IoT RedBoard RP2350"
319322
},
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"build": {
3+
"arduino": {
4+
"earlephilhower": {
5+
"boot2_source": "none.S",
6+
"usb_vid": "0x2E8A",
7+
"usb_pid": "0x10EC"
8+
}
9+
},
10+
"core": "earlephilhower",
11+
"cpu": "cortex-m33",
12+
"extra_flags": "-DARDUINO_SOLDERED_NULA_RP2350 -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=500 -DPICO_CYW43_SUPPORTED=1 -DCYW43_PIN_WL_DYNAMIC=1",
13+
"f_cpu": "150000000L",
14+
"hwids": [
15+
[
16+
"0x2E8A",
17+
"0x00C0"
18+
],
19+
[
20+
"0x2E8A",
21+
"0x10EC"
22+
]
23+
],
24+
"mcu": "rp2350",
25+
"variant": "soldered_nula_rp2350"
26+
},
27+
"debug": {
28+
"jlink_device": "RP2350_M33_0",
29+
"openocd_target": "rp2350.cfg",
30+
"svd_path": "rp2350.svd"
31+
},
32+
"frameworks": [
33+
"arduino",
34+
"picosdk"
35+
],
36+
"name": "NULA RP2350",
37+
"upload": {
38+
"maximum_ram_size": 524288,
39+
"maximum_size": 16777216,
40+
"require_upload_port": true,
41+
"native_usb": true,
42+
"use_1200bps_touch": true,
43+
"wait_for_upload_port": false,
44+
"protocol": "picotool",
45+
"protocols": [
46+
"blackmagic",
47+
"cmsis-dap",
48+
"jlink",
49+
"raspberrypi-swd",
50+
"picotool",
51+
"picoprobe"
52+
]
53+
},
54+
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
55+
"vendor": "Soldered Electronics"
56+
}

tools/makeboards.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,9 @@ def MakeBoardJSON(name, chip, vendor_name, product_name, vid, pid, pwr, boarddef
680680
MakeBoard("solderparty_rp2350_stamp", "rp2350", "Solder Party", "RP2350 Stamp", "0x1209", "0xa183", 500, "SOLDERPARTY_RP2350_STAMP", 16, 0, "none", None, "https://www.solder.party/docs/rp2350-stamp/")
681681
MakeBoard("solderparty_rp2350_stamp_xl", "rp2350", "Solder Party", "RP2350 Stamp XL", "0x1209", "0xa184", 500, "SOLDERPARTY_RP2350_STAMP_XL", 16, 0, "none", None, "https://www.solder.party/docs/rp2350-stamp-xl/")
682682

683+
# Soldered Electronics
684+
MakeBoard("soldered_nula_rp2350", "rp2350", "Soldered Electronics", "NULA RP2350", "0x2e8a", "0x10ec", 500, "SOLDERED_NULA_RP2350", 16, 0, "none", ["PICO_CYW43_SUPPORTED=1", "CYW43_PIN_WL_DYNAMIC=1"])
685+
683686
# SparkFun
684687
MakeBoard("sparkfun_iotredboard_rp2350", "rp2350", "SparkFun", "IoT RedBoard RP2350", "0x1b4f", "0x0047", 250, "SPARKFUN_IOTREDBOARD_RP2350", 16, 8, "none", ["PICO_CYW43_SUPPORTED=1", "CYW43_PIN_WL_DYNAMIC=1"], "https://www.sparkfun.com/sparkfun-iot-redboard-rp2350.html")
685688
MakeBoard("sparkfun_micromodrp2040", "rp2040", "SparkFun", "MicroMod RP2040", "0x1b4f", "0x0026", 250, "SPARKFUN_MICROMOD_RP2040", 16, 0, "boot2_w25q080_2_padded_checksum")
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
pinMode and digitalRead/Write for the Raspberry Pi Pico W RP2040
3+
Copyright (c) 2022 Earle F. Philhower, III <[email protected]>
4+
5+
This library is free software; you can redistribute it and/or
6+
modify it under the terms of the GNU Lesser General Public
7+
License as published by the Free Software Foundation; either
8+
version 2.1 of the License, or (at your option) any later version.
9+
10+
This library is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13+
Lesser General Public License for more details.
14+
15+
You should have received a copy of the GNU Lesser General Public
16+
License along with this library; if not, write to the Free Software
17+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18+
*/
19+
20+
#include "Arduino.h"
21+
#include <cyw43_wrappers.h>
22+
23+
extern "C" void pinMode(pin_size_t pin, PinMode mode) {
24+
cyw43_pinMode(pin, mode);
25+
}
26+
27+
extern "C" void digitalWrite(pin_size_t pin, PinStatus val) {
28+
cyw43_digitalWrite(pin, val);
29+
}
30+
31+
extern "C" PinStatus digitalRead(pin_size_t pin) {
32+
return cyw43_digitalRead(pin);
33+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
Initialize the Pico W WiFi driver
3+
4+
Copyright (c) 2022 Earle F. Philhower, III <[email protected]>
5+
6+
This library is free software; you can redistribute it and/or
7+
modify it under the terms of the GNU Lesser General Public
8+
License as published by the Free Software Foundation; either
9+
version 2.1 of the License, or (at your option) any later version.
10+
11+
This library is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
Lesser General Public License for more details.
15+
16+
You should have received a copy of the GNU Lesser General Public
17+
License along with this library; if not, write to the Free Software
18+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
*/
20+
21+
#include <cyw43_wrappers.h>
22+
#include "pico/cyw43_driver.h"
23+
24+
extern "C" void initVariant() {
25+
static uint cyw43_pin_array[CYW43_PIN_INDEX_WL_COUNT] = {24, 38, 38, 38, 37, 36};
26+
cyw43_set_pins_wl(cyw43_pin_array);
27+
init_cyw43_wifi();
28+
}
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
2+
#include <stdint.h>
3+
#include <cyw43_wrappers.h>
4+
5+
#define PICO_RP2350A 0 // RP2350B
6+
7+
#define PINS_COUNT (48u)
8+
#define NUM_DIGITAL_PINS (48u)
9+
#define NUM_ANALOG_INPUTS (7u)
10+
#define NUM_ANALOG_OUTPUTS (0u)
11+
#define ADC_RESOLUTION (12u)
12+
13+
//LEDs
14+
#define PIN_NEOPIXEL (26u)
15+
#define NUM_NEOPIXEL (1u)
16+
17+
// Serial
18+
#define PIN_SERIAL1_TX (0u)
19+
#define PIN_SERIAL1_RX (1u)
20+
21+
#define PIN_SERIAL2_TX (41u)
22+
#define PIN_SERIAL2_RX (42u)
23+
24+
// SPI0
25+
#define PIN_SPI0_MISO (2u)
26+
#define PIN_SPI0_MOSI (3u)
27+
#define PIN_SPI0_SCK (4u)
28+
#define PIN_SPI0_SS (5u)
29+
30+
#define PIN_SPI0_POCI PIN_SPI0_MISO
31+
#define PIN_SPI0_PICO PIN_SPI0_MOSI
32+
#define PIN_SPI0_CS PIN_SPI0_SS
33+
34+
// SD Card SPI
35+
#define PIN_SPI1_MISO (30u)
36+
#define PIN_SPI1_MOSI (31u)
37+
#define PIN_SPI1_SCK (32u)
38+
#define PIN_SPI1_SS (33u) // CS pin for SD card.
39+
40+
#define PIN_SPI1_POCI PIN_SPI1_MISO
41+
#define PIN_SPI1_PICO PIN_SPI1_MOSI
42+
#define PIN_SPI1_CS PIN_SPI1_SS
43+
44+
// Wire
45+
#define PIN_WIRE0_SDA (8u)
46+
#define PIN_WIRE0_SCL (9u)
47+
48+
#define PIN_WIRE1_SDA (30u)
49+
#define PIN_WIRE1_SCL (31u)
50+
51+
#define SERIAL_HOWMANY (3u)
52+
#define SPI_HOWMANY (2u)
53+
#define WIRE_HOWMANY (2u)
54+
#define WIRE_INTERFACES_COUNT (WIRE_HOWMANY)
55+
56+
/* Pin mappings for marked pins on the board */
57+
// UART0
58+
static const uint8_t D0 = (0u);
59+
static const uint8_t D1 = (1u);
60+
61+
// I2C0
62+
static const uint8_t D4 = (4u);
63+
static const uint8_t D5 = (5u);
64+
65+
// GPIO
66+
static const uint8_t D6 = (6u);
67+
static const uint8_t D7 = (7u);
68+
69+
// SD Card/SPI1
70+
static const uint8_t D8 = (8u);
71+
static const uint8_t D9 = (9u);
72+
static const uint8_t D10 = (10u);
73+
static const uint8_t D11 = (11u);
74+
75+
76+
static const uint8_t D31 = (31u);
77+
static const uint8_t D32 = (32u);
78+
static const uint8_t D33 = (33u);
79+
static const uint8_t D34 = (34u);
80+
static const uint8_t D35 = (35u);
81+
82+
// Analog Inputs are also digital capable.
83+
static const uint8_t D40 = (40u);
84+
static const uint8_t D41 = (41u);
85+
static const uint8_t D42 = (42u);
86+
static const uint8_t D43 = (43u);
87+
static const uint8_t D44 = (44u);
88+
static const uint8_t D45 = (45u);
89+
static const uint8_t D46 = (46u);
90+
static const uint8_t D47 = (47u);
91+
92+
static const uint8_t A0 = (40u);
93+
static const uint8_t A1 = (41u);
94+
static const uint8_t A2 = (42u);
95+
static const uint8_t A3 = (43u);
96+
static const uint8_t A4 = (44u);
97+
static const uint8_t A5 = (45u);
98+
static const uint8_t A6 = (46u);
99+
static const uint8_t A7 = (47u);
100+
101+
// SD Card detect - Active Low
102+
static const uint8_t SD_ENABLE = (4u);
103+
104+
// Low battery alert - Active Low
105+
static const uint8_t BATT_ALRT_N = (6u);
106+
107+
// Power enable for peripherals - qwiic, sd, rgb. Default HIGH via HW jumper.
108+
static const uint8_t PERIPHERAL_POWER_ENABLE = (7u);
109+
110+
// WiFi power GPIO
111+
static const uint8_t WRL_ON = (23u);
112+
113+
// User button
114+
static const uint8_t USER_BTN = (27u);
115+
116+
117+
static const uint8_t SS = PIN_SPI0_SS;
118+
static const uint8_t CS = PIN_SPI0_CS;
119+
120+
static const uint8_t MOSI = PIN_SPI0_MOSI;
121+
static const uint8_t PICO = PIN_SPI0_PICO;
122+
123+
static const uint8_t MISO = PIN_SPI0_MISO;
124+
static const uint8_t POCI = PIN_SPI0_POCI;
125+
126+
static const uint8_t SCK = PIN_SPI0_SCK;
127+
128+
static const uint8_t SDA = PIN_WIRE0_SDA;
129+
static const uint8_t SCL = PIN_WIRE0_SCL;
130+
131+
static const uint8_t SDA1 = PIN_WIRE1_SDA;
132+
static const uint8_t SCL1 = PIN_WIRE1_SCL;
133+
134+
static const uint8_t RX = PIN_SERIAL1_RX;
135+
static const uint8_t TX = PIN_SERIAL1_TX;

0 commit comments

Comments
 (0)