Skip to content

Commit 913dfad

Browse files
Add Adafruit Feather RP2040 SCORPIO (#987)
* add rough for scorpio * Add SCORPIO items from ladyada * Change PID in makeboards.py instead of boards.txt * Fix PID in scorpio JSON * README: Add Feather SCORPIO to supported boards * Fix PIDs using values from MBAdafruitBoards Still unsure about pid.[1-7] but let's see what happens * boards.txt fixed by running makeboards.py Co-authored-by: lady ada <[email protected]>
1 parent 2062f94 commit 913dfad

File tree

6 files changed

+697
-0
lines changed

6 files changed

+697
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ See https://arduino-pico.readthedocs.io/en/latest/ along with the examples for m
1313
* Raspberry Pi Pico
1414
* Raspberry Pi Pico W
1515
* Adafruit Feather RP2040
16+
* Adafruit Feather RP2040 SCORPIO
1617
* Adafruit ItsyBitsy RP2040
1718
* Adafruit KB2040
1819
* Adafruit Macropad RP2040

boards.txt

Lines changed: 596 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
@@ -26,6 +26,9 @@
2626
{
2727
"name": "Adafruit Feather RP2040"
2828
},
29+
{
30+
"name": "Adafruit Feather RP2040 SCORPIO"
31+
},
2932
{
3033
"name": "Adafruit ItsyBitsy RP2040"
3134
},
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"build": {
3+
"arduino": {
4+
"earlephilhower": {
5+
"boot2_source": "boot2_w25q080_2_padded_checksum.S",
6+
"usb_vid": "0x239A",
7+
"usb_pid": "0x8121"
8+
}
9+
},
10+
"core": "earlephilhower",
11+
"cpu": "cortex-m0plus",
12+
"extra_flags": "-D ARDUINO_ADAFRUIT_FEATHER_RP2040_SCORPIO -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250",
13+
"f_cpu": "133000000L",
14+
"hwids": [
15+
[
16+
"0x2E8A",
17+
"0x00C0"
18+
],
19+
[
20+
"0x239A",
21+
"0x8121"
22+
]
23+
],
24+
"mcu": "rp2040",
25+
"variant": "adafruit_feather_scorpio"
26+
},
27+
"debug": {
28+
"jlink_device": "RP2040_M0_0",
29+
"openocd_target": "rp2040.cfg",
30+
"svd_path": "rp2040.svd"
31+
},
32+
"frameworks": [
33+
"arduino"
34+
],
35+
"name": "Feather RP2040 SCORPIO",
36+
"upload": {
37+
"maximum_ram_size": 270336,
38+
"maximum_size": 8388608,
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+
"cmsis-dap",
46+
"jlink",
47+
"raspberrypi-swd",
48+
"picotool",
49+
"picoprobe"
50+
]
51+
},
52+
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
53+
"vendor": "Adafruit"
54+
}

tools/makeboards.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, f
327327

328328
# Adafruit
329329
MakeBoard("adafruit_feather", "Adafruit", "Feather RP2040", "0x239a", "0x80f1", 250, "ADAFRUIT_FEATHER_RP2040", 8, "boot2_w25x10cl_4_padded_checksum")
330+
MakeBoard("adafruit_feather_scorpio", "Adafruit", "Feather RP2040 SCORPIO", "0x239a", "0x8121", 250, "ADAFRUIT_FEATHER_RP2040_SCORPIO", 8, "boot2_w25q080_2_padded_checksum")
330331
MakeBoard("adafruit_itsybitsy", "Adafruit", "ItsyBitsy RP2040", "0x239a", "0x80fd", 250, "ADAFRUIT_ITSYBITSY_RP2040", 8, "boot2_w25q080_2_padded_checksum")
331332
MakeBoard("adafruit_qtpy", "Adafruit", "QT Py RP2040", "0x239a", "0x80f7", 250, "ADAFRUIT_QTPY_RP2040", 8, "boot2_w25q080_2_padded_checksum")
332333
MakeBoard("adafruit_stemmafriend", "Adafruit", "STEMMA Friend RP2040", "0x239a", "0x80e3", 250, "ADAFRUIT_STEMMAFRIEND_RP2040", 8, "boot2_w25q080_2_padded_checksum")
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#pragma once
2+
3+
// Pin definitions taken from:
4+
// https://learn.adafruit.com/assets/100337
5+
6+
// LEDs
7+
#define PIN_LED (13u)
8+
9+
// NeoPixel
10+
#define PIN_NEOPIXEL (4u)
11+
12+
// Serial
13+
#define PIN_SERIAL1_TX (0u)
14+
#define PIN_SERIAL1_RX (1u)
15+
16+
// Not pinned out
17+
#define PIN_SERIAL2_TX (31u)
18+
#define PIN_SERIAL2_RX (31u)
19+
20+
// SPI
21+
#define PIN_SPI0_MISO (8u)
22+
#define PIN_SPI0_MOSI (15u)
23+
#define PIN_SPI0_SCK (14u)
24+
#define PIN_SPI0_SS (13u)
25+
26+
// Not pinned out
27+
#define PIN_SPI1_MISO (31u)
28+
#define PIN_SPI1_MOSI (31u)
29+
#define PIN_SPI1_SCK (31u)
30+
#define PIN_SPI1_SS (31u)
31+
32+
// Wire
33+
#define PIN_WIRE0_SDA (2u)
34+
#define PIN_WIRE0_SCL (3u)
35+
#define PIN_WIRE1_SDA (31u)
36+
#define PIN_WIRE1_SCL (31u)
37+
38+
#define SERIAL_HOWMANY (2u)
39+
#define SPI_HOWMANY (1u)
40+
#define WIRE_HOWMANY (1u)
41+
42+
#include "../generic/common.h"

0 commit comments

Comments
 (0)