Skip to content

Commit e32e13f

Browse files
peterharperukdpgeorge
authored andcommitted
rp2/boards/RPI_PICO2: Add new RPI_PICO2 board definition.
This is the same form-factor as the Pico but with an RP2350. Signed-off-by: Damien George <[email protected]>
1 parent 137e9e8 commit e32e13f

File tree

6 files changed

+60
-0
lines changed

6 files changed

+60
-0
lines changed

ports/rp2/boards/RPI_PICO2/board.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"docs": "",
6+
"features": [
7+
"Dual-core",
8+
"External Flash",
9+
"USB"
10+
],
11+
"images": [
12+
"rp2-pico2.jpg"
13+
],
14+
"mcu": "rp2350",
15+
"product": "Pico 2",
16+
"thumbnail": "",
17+
"url": "https://www.raspberrypi.com/products/raspberry-pi-pico-2/",
18+
"variants": {
19+
"RISCV": "RISC-V CPU mode"
20+
},
21+
"vendor": "Raspberry Pi"
22+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# cmake file for Raspberry Pi Pico2
2+
set(PICO_BOARD "pico2")
3+
4+
# To change the gpio count for QFN-80
5+
# set(PICO_NUM_GPIOS 48)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Board and hardware specific configuration
2+
#define MICROPY_HW_BOARD_NAME "Raspberry Pi Pico2"
3+
#define MICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES - 1024 * 1024)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
set(PICO_PLATFORM "rp2350")
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
set(PICO_PLATFORM "rp2350-riscv")

ports/rp2/boards/RPI_PICO2/pins.csv

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
GP0,GPIO0
2+
GP1,GPIO1
3+
GP2,GPIO2
4+
GP3,GPIO3
5+
GP4,GPIO4
6+
GP5,GPIO5
7+
GP6,GPIO6
8+
GP7,GPIO7
9+
GP8,GPIO8
10+
GP9,GPIO9
11+
GP10,GPIO10
12+
GP11,GPIO11
13+
GP12,GPIO12
14+
GP13,GPIO13
15+
GP14,GPIO14
16+
GP15,GPIO15
17+
GP16,GPIO16
18+
GP17,GPIO17
19+
GP18,GPIO18
20+
GP19,GPIO19
21+
GP20,GPIO20
22+
GP21,GPIO21
23+
GP22,GPIO22
24+
GP25,GPIO25
25+
GP26,GPIO26
26+
GP27,GPIO27
27+
GP28,GPIO28
28+
LED,GPIO25

0 commit comments

Comments
 (0)