Unverified Commit 5bea3289 authored by Andrew DeLisa's avatar Andrew DeLisa Committed by GitHub

Add Sea-Picro board (#1784)

* add sea-picro board

* add configurable board URL to makeboards.py

* update board URL for sea picro

* update note about QT port

* update pin mappings

* fix board vendor/name
parent f5f7267f
...@@ -52,6 +52,7 @@ Read the [Contributing Guide](https://github.com/earlephilhower/arduino-pico/blo ...@@ -52,6 +52,7 @@ Read the [Contributing Guide](https://github.com/earlephilhower/arduino-pico/blo
* Pimoroni PGA2040 * Pimoroni PGA2040
* Pimoroni Plasma2040 * Pimoroni Plasma2040
* Pimoroni Tiny2040 * Pimoroni Tiny2040
* Sea-Picro
* Seeed Indicator RP2040 * Seeed Indicator RP2040
* Seeed XIAO RP2040 * Seeed XIAO RP2040
* Silicognition RP2040-Shim * Silicognition RP2040-Shim
......
...@@ -11012,6 +11012,248 @@ pimoroni_tiny2040.menu.uploadmethod.picodebug.upload.maximum_data_size=245760 ...@@ -11012,6 +11012,248 @@ pimoroni_tiny2040.menu.uploadmethod.picodebug.upload.maximum_data_size=245760
pimoroni_tiny2040.menu.uploadmethod.picodebug.upload.tool=picodebug pimoroni_tiny2040.menu.uploadmethod.picodebug.upload.tool=picodebug
pimoroni_tiny2040.menu.uploadmethod.picodebug.upload.tool.default=picodebug pimoroni_tiny2040.menu.uploadmethod.picodebug.upload.tool.default=picodebug
# -----------------------------------
# Generic Sea-Picro
# -----------------------------------
sea_picro.name=Generic Sea-Picro
sea_picro.vid.0=0x2e8a
sea_picro.pid.0=0xf00a
sea_picro.vid.1=0x2e8a
sea_picro.pid.1=0xf10a
sea_picro.vid.2=0x2e8a
sea_picro.pid.2=0xf00a
sea_picro.vid.3=0x2e8a
sea_picro.pid.3=0xf10a
sea_picro.vid.4=0x2e8a
sea_picro.pid.4=0xf00a
sea_picro.vid.5=0x2e8a
sea_picro.pid.5=0xf10a
sea_picro.vid.6=0x2e8a
sea_picro.pid.6=0xf00a
sea_picro.vid.7=0x2e8a
sea_picro.pid.7=0xf10a
sea_picro.build.usbvid=-DUSBD_VID=0x2e8a
sea_picro.build.usbpid=-DUSBD_PID=0xf00a
sea_picro.build.usbpwr=-DUSBD_MAX_POWER_MA=500
sea_picro.build.board=SEA_PICRO
sea_picro.build.mcu=cortex-m0plus
sea_picro.build.variant=sea_picro
sea_picro.upload.maximum_size=8388608
sea_picro.upload.wait_for_upload_port=true
sea_picro.upload.erase_cmd=
sea_picro.serial.disableDTR=false
sea_picro.serial.disableRTS=false
sea_picro.build.f_cpu=125000000
sea_picro.build.led=
sea_picro.build.core=rp2040
sea_picro.build.ldscript=memmap_default.ld
sea_picro.build.boot2=boot2_w25q64jv_4_padded_checksum
sea_picro.build.usb_manufacturer="Generic"
sea_picro.build.usb_product="Sea-Picro"
sea_picro.menu.flash.8388608_0=8MB (no FS)
sea_picro.menu.flash.8388608_0.upload.maximum_size=8384512
sea_picro.menu.flash.8388608_0.build.flash_total=8388608
sea_picro.menu.flash.8388608_0.build.flash_length=8384512
sea_picro.menu.flash.8388608_0.build.eeprom_start=276819968
sea_picro.menu.flash.8388608_0.build.fs_start=276819968
sea_picro.menu.flash.8388608_0.build.fs_end=276819968
sea_picro.menu.flash.8388608_65536=8MB (Sketch: 8128KB, FS: 64KB)
sea_picro.menu.flash.8388608_65536.upload.maximum_size=8318976
sea_picro.menu.flash.8388608_65536.build.flash_total=8388608
sea_picro.menu.flash.8388608_65536.build.flash_length=8318976
sea_picro.menu.flash.8388608_65536.build.eeprom_start=276819968
sea_picro.menu.flash.8388608_65536.build.fs_start=276754432
sea_picro.menu.flash.8388608_65536.build.fs_end=276819968
sea_picro.menu.flash.8388608_131072=8MB (Sketch: 8064KB, FS: 128KB)
sea_picro.menu.flash.8388608_131072.upload.maximum_size=8253440
sea_picro.menu.flash.8388608_131072.build.flash_total=8388608
sea_picro.menu.flash.8388608_131072.build.flash_length=8253440
sea_picro.menu.flash.8388608_131072.build.eeprom_start=276819968
sea_picro.menu.flash.8388608_131072.build.fs_start=276688896
sea_picro.menu.flash.8388608_131072.build.fs_end=276819968
sea_picro.menu.flash.8388608_262144=8MB (Sketch: 7936KB, FS: 256KB)
sea_picro.menu.flash.8388608_262144.upload.maximum_size=8122368
sea_picro.menu.flash.8388608_262144.build.flash_total=8388608
sea_picro.menu.flash.8388608_262144.build.flash_length=8122368
sea_picro.menu.flash.8388608_262144.build.eeprom_start=276819968
sea_picro.menu.flash.8388608_262144.build.fs_start=276557824
sea_picro.menu.flash.8388608_262144.build.fs_end=276819968
sea_picro.menu.flash.8388608_524288=8MB (Sketch: 7680KB, FS: 512KB)
sea_picro.menu.flash.8388608_524288.upload.maximum_size=7860224
sea_picro.menu.flash.8388608_524288.build.flash_total=8388608
sea_picro.menu.flash.8388608_524288.build.flash_length=7860224
sea_picro.menu.flash.8388608_524288.build.eeprom_start=276819968
sea_picro.menu.flash.8388608_524288.build.fs_start=276295680
sea_picro.menu.flash.8388608_524288.build.fs_end=276819968
sea_picro.menu.flash.8388608_1048576=8MB (Sketch: 7MB, FS: 1MB)
sea_picro.menu.flash.8388608_1048576.upload.maximum_size=7335936
sea_picro.menu.flash.8388608_1048576.build.flash_total=8388608
sea_picro.menu.flash.8388608_1048576.build.flash_length=7335936
sea_picro.menu.flash.8388608_1048576.build.eeprom_start=276819968
sea_picro.menu.flash.8388608_1048576.build.fs_start=275771392
sea_picro.menu.flash.8388608_1048576.build.fs_end=276819968
sea_picro.menu.flash.8388608_2097152=8MB (Sketch: 6MB, FS: 2MB)
sea_picro.menu.flash.8388608_2097152.upload.maximum_size=6287360
sea_picro.menu.flash.8388608_2097152.build.flash_total=8388608
sea_picro.menu.flash.8388608_2097152.build.flash_length=6287360
sea_picro.menu.flash.8388608_2097152.build.eeprom_start=276819968
sea_picro.menu.flash.8388608_2097152.build.fs_start=274722816
sea_picro.menu.flash.8388608_2097152.build.fs_end=276819968
sea_picro.menu.flash.8388608_3145728=8MB (Sketch: 5MB, FS: 3MB)
sea_picro.menu.flash.8388608_3145728.upload.maximum_size=5238784
sea_picro.menu.flash.8388608_3145728.build.flash_total=8388608
sea_picro.menu.flash.8388608_3145728.build.flash_length=5238784
sea_picro.menu.flash.8388608_3145728.build.eeprom_start=276819968
sea_picro.menu.flash.8388608_3145728.build.fs_start=273674240
sea_picro.menu.flash.8388608_3145728.build.fs_end=276819968
sea_picro.menu.flash.8388608_4194304=8MB (Sketch: 4MB, FS: 4MB)
sea_picro.menu.flash.8388608_4194304.upload.maximum_size=4190208
sea_picro.menu.flash.8388608_4194304.build.flash_total=8388608
sea_picro.menu.flash.8388608_4194304.build.flash_length=4190208
sea_picro.menu.flash.8388608_4194304.build.eeprom_start=276819968
sea_picro.menu.flash.8388608_4194304.build.fs_start=272625664
sea_picro.menu.flash.8388608_4194304.build.fs_end=276819968
sea_picro.menu.flash.8388608_5242880=8MB (Sketch: 3MB, FS: 5MB)
sea_picro.menu.flash.8388608_5242880.upload.maximum_size=3141632
sea_picro.menu.flash.8388608_5242880.build.flash_total=8388608
sea_picro.menu.flash.8388608_5242880.build.flash_length=3141632
sea_picro.menu.flash.8388608_5242880.build.eeprom_start=276819968
sea_picro.menu.flash.8388608_5242880.build.fs_start=271577088
sea_picro.menu.flash.8388608_5242880.build.fs_end=276819968
sea_picro.menu.flash.8388608_6291456=8MB (Sketch: 2MB, FS: 6MB)
sea_picro.menu.flash.8388608_6291456.upload.maximum_size=2093056
sea_picro.menu.flash.8388608_6291456.build.flash_total=8388608
sea_picro.menu.flash.8388608_6291456.build.flash_length=2093056
sea_picro.menu.flash.8388608_6291456.build.eeprom_start=276819968
sea_picro.menu.flash.8388608_6291456.build.fs_start=270528512
sea_picro.menu.flash.8388608_6291456.build.fs_end=276819968
sea_picro.menu.flash.8388608_7340032=8MB (Sketch: 1MB, FS: 7MB)
sea_picro.menu.flash.8388608_7340032.upload.maximum_size=1044480
sea_picro.menu.flash.8388608_7340032.build.flash_total=8388608
sea_picro.menu.flash.8388608_7340032.build.flash_length=1044480
sea_picro.menu.flash.8388608_7340032.build.eeprom_start=276819968
sea_picro.menu.flash.8388608_7340032.build.fs_start=269479936
sea_picro.menu.flash.8388608_7340032.build.fs_end=276819968
sea_picro.menu.freq.133=133 MHz
sea_picro.menu.freq.133.build.f_cpu=133000000L
sea_picro.menu.freq.50=50 MHz
sea_picro.menu.freq.50.build.f_cpu=50000000L
sea_picro.menu.freq.100=100 MHz
sea_picro.menu.freq.100.build.f_cpu=100000000L
sea_picro.menu.freq.120=120 MHz
sea_picro.menu.freq.120.build.f_cpu=120000000L
sea_picro.menu.freq.125=125 MHz
sea_picro.menu.freq.125.build.f_cpu=125000000L
sea_picro.menu.freq.150=150 MHz (Overclock)
sea_picro.menu.freq.150.build.f_cpu=150000000L
sea_picro.menu.freq.175=175 MHz (Overclock)
sea_picro.menu.freq.175.build.f_cpu=175000000L
sea_picro.menu.freq.200=200 MHz (Overclock)
sea_picro.menu.freq.200.build.f_cpu=200000000L
sea_picro.menu.freq.225=225 MHz (Overclock)
sea_picro.menu.freq.225.build.f_cpu=225000000L
sea_picro.menu.freq.240=240 MHz (Overclock)
sea_picro.menu.freq.240.build.f_cpu=240000000L
sea_picro.menu.freq.250=250 MHz (Overclock)
sea_picro.menu.freq.250.build.f_cpu=250000000L
sea_picro.menu.freq.275=275 MHz (Overclock)
sea_picro.menu.freq.275.build.f_cpu=275000000L
sea_picro.menu.freq.300=300 MHz (Overclock)
sea_picro.menu.freq.300.build.f_cpu=300000000L
sea_picro.menu.opt.Small=Small (-Os) (standard)
sea_picro.menu.opt.Small.build.flags.optimize=-Os
sea_picro.menu.opt.Optimize=Optimize (-O)
sea_picro.menu.opt.Optimize.build.flags.optimize=-O
sea_picro.menu.opt.Optimize2=Optimize More (-O2)
sea_picro.menu.opt.Optimize2.build.flags.optimize=-O2
sea_picro.menu.opt.Optimize3=Optimize Even More (-O3)
sea_picro.menu.opt.Optimize3.build.flags.optimize=-O3
sea_picro.menu.opt.Fast=Fast (-Ofast) (maybe slower)
sea_picro.menu.opt.Fast.build.flags.optimize=-Ofast
sea_picro.menu.opt.Debug=Debug (-Og)
sea_picro.menu.opt.Debug.build.flags.optimize=-Og
sea_picro.menu.rtti.Disabled=Disabled
sea_picro.menu.rtti.Disabled.build.flags.rtti=-fno-rtti
sea_picro.menu.rtti.Enabled=Enabled
sea_picro.menu.rtti.Enabled.build.flags.rtti=
sea_picro.menu.stackprotect.Disabled=Disabled
sea_picro.menu.stackprotect.Disabled.build.flags.stackprotect=
sea_picro.menu.stackprotect.Enabled=Enabled
sea_picro.menu.stackprotect.Enabled.build.flags.stackprotect=-fstack-protector
sea_picro.menu.exceptions.Disabled=Disabled
sea_picro.menu.exceptions.Disabled.build.flags.exceptions=-fno-exceptions
sea_picro.menu.exceptions.Disabled.build.flags.libstdcpp=-lstdc++
sea_picro.menu.exceptions.Enabled=Enabled
sea_picro.menu.exceptions.Enabled.build.flags.exceptions=-fexceptions
sea_picro.menu.exceptions.Enabled.build.flags.libstdcpp=-lstdc++-exc
sea_picro.menu.dbgport.Disabled=Disabled
sea_picro.menu.dbgport.Disabled.build.debug_port=
sea_picro.menu.dbgport.Serial=Serial
sea_picro.menu.dbgport.Serial.build.debug_port=-DDEBUG_RP2040_PORT=Serial
sea_picro.menu.dbgport.Serial1=Serial1
sea_picro.menu.dbgport.Serial1.build.debug_port=-DDEBUG_RP2040_PORT=Serial1
sea_picro.menu.dbgport.Serial2=Serial2
sea_picro.menu.dbgport.Serial2.build.debug_port=-DDEBUG_RP2040_PORT=Serial2
sea_picro.menu.dbglvl.None=None
sea_picro.menu.dbglvl.None.build.debug_level=
sea_picro.menu.dbglvl.Core=Core
sea_picro.menu.dbglvl.Core.build.debug_level=-DDEBUG_RP2040_CORE
sea_picro.menu.dbglvl.SPI=SPI
sea_picro.menu.dbglvl.SPI.build.debug_level=-DDEBUG_RP2040_SPI
sea_picro.menu.dbglvl.Wire=Wire
sea_picro.menu.dbglvl.Wire.build.debug_level=-DDEBUG_RP2040_WIRE
sea_picro.menu.dbglvl.Bluetooth=Bluetooth
sea_picro.menu.dbglvl.Bluetooth.build.debug_level=-DDEBUG_RP2040_BLUETOOTH
sea_picro.menu.dbglvl.All=All
sea_picro.menu.dbglvl.All.build.debug_level=-DDEBUG_RP2040_WIRE -DDEBUG_RP2040_SPI -DDEBUG_RP2040_CORE -DDEBUG_RP2040_BLUETOOTH
sea_picro.menu.dbglvl.NDEBUG=NDEBUG
sea_picro.menu.dbglvl.NDEBUG.build.debug_level=-DNDEBUG
sea_picro.menu.usbstack.picosdk=Pico SDK
sea_picro.menu.usbstack.picosdk.build.usbstack_flags=
sea_picro.menu.usbstack.tinyusb=Adafruit TinyUSB
sea_picro.menu.usbstack.tinyusb.build.usbstack_flags=-DUSE_TINYUSB "-I{runtime.platform.path}/libraries/Adafruit_TinyUSB_Arduino/src/arduino"
sea_picro.menu.usbstack.nousb=No USB
sea_picro.menu.usbstack.nousb.build.usbstack_flags="-DNO_USB -DDISABLE_USB_SERIAL -I{runtime.platform.path}/tools/libpico"
sea_picro.menu.ipbtstack.ipv4only=IPv4 Only
sea_picro.menu.ipbtstack.ipv4only.build.libpicow=libpicow-noipv6-nobtc-noble.a
sea_picro.menu.ipbtstack.ipv4only.build.libpicowdefs=-DLWIP_IPV6=0 -DLWIP_IPV4=1
sea_picro.menu.ipbtstack.ipv4ipv6=IPv4 + IPv6
sea_picro.menu.ipbtstack.ipv4ipv6.build.libpicow=libpicow-ipv6-nobtc-noble.a
sea_picro.menu.ipbtstack.ipv4ipv6.build.libpicowdefs=-DLWIP_IPV6=1 -DLWIP_IPV4=1
sea_picro.menu.ipbtstack.ipv4btcble=IPv4 + Bluetooth
sea_picro.menu.ipbtstack.ipv4btcble.build.libpicow=libpicow-noipv6-btc-ble.a
sea_picro.menu.ipbtstack.ipv4btcble.build.libpicowdefs=-DLWIP_IPV6=0 -DLWIP_IPV4=1 -DENABLE_CLASSIC=1 -DENABLE_BLE=1
sea_picro.menu.ipbtstack.ipv4ipv6btcble=IPv4 + IPv6 + Bluetooth
sea_picro.menu.ipbtstack.ipv4ipv6btcble.build.libpicow=libpicow-ipv6-btc-ble.a
sea_picro.menu.ipbtstack.ipv4ipv6btcble.build.libpicowdefs=-DLWIP_IPV6=1 -DLWIP_IPV4=1 -DENABLE_CLASSIC=1 -DENABLE_BLE=1
sea_picro.menu.uploadmethod.default=Default (UF2)
sea_picro.menu.uploadmethod.default.build.ram_length=256k
sea_picro.menu.uploadmethod.default.build.debugscript=picoprobe_cmsis_dap.tcl
sea_picro.menu.uploadmethod.default.upload.maximum_data_size=262144
sea_picro.menu.uploadmethod.default.upload.tool=uf2conv
sea_picro.menu.uploadmethod.default.upload.tool.default=uf2conv
sea_picro.menu.uploadmethod.default.upload.tool.network=uf2conv-network
sea_picro.menu.uploadmethod.picotool=Picotool
sea_picro.menu.uploadmethod.picotool.build.ram_length=256k
sea_picro.menu.uploadmethod.picotool.build.debugscript=picoprobe.tcl
sea_picro.menu.uploadmethod.picotool.build.picodebugflags=-DENABLE_PICOTOOL_USB
sea_picro.menu.uploadmethod.picotool.upload.maximum_data_size=262144
sea_picro.menu.uploadmethod.picotool.upload.tool=picotool
sea_picro.menu.uploadmethod.picotool.upload.tool.default=picotool
sea_picro.menu.uploadmethod.picoprobe_cmsis_dap=Picoprobe (CMSIS-DAP)
sea_picro.menu.uploadmethod.picoprobe_cmsis_dap.build.ram_length=256k
sea_picro.menu.uploadmethod.picoprobe_cmsis_dap.build.debugscript=picoprobe_cmsis_dap.tcl
sea_picro.menu.uploadmethod.picoprobe_cmsis_dap.upload.maximum_data_size=262144
sea_picro.menu.uploadmethod.picoprobe_cmsis_dap.upload.tool=picoprobe_cmsis_dap
sea_picro.menu.uploadmethod.picoprobe_cmsis_dap.upload.tool.default=picoprobe_cmsis_dap
sea_picro.menu.uploadmethod.picodebug=Pico-Debug
sea_picro.menu.uploadmethod.picodebug.build.ram_length=240k
sea_picro.menu.uploadmethod.picodebug.build.debugscript=picodebug.tcl
sea_picro.menu.uploadmethod.picodebug.build.picodebugflags=-UUSE_TINYUSB -DNO_USB -DDISABLE_USB_SERIAL -I{runtime.platform.path}/tools/libpico
sea_picro.menu.uploadmethod.picodebug.upload.maximum_data_size=245760
sea_picro.menu.uploadmethod.picodebug.upload.tool=picodebug
sea_picro.menu.uploadmethod.picodebug.upload.tool.default=picodebug
# ----------------------------------- # -----------------------------------
# Silicognition RP2040-Shim # Silicognition RP2040-Shim
# ----------------------------------- # -----------------------------------
......
...@@ -155,6 +155,9 @@ ...@@ -155,6 +155,9 @@
{ {
"name": "Pimoroni Tiny2040" "name": "Pimoroni Tiny2040"
}, },
{
"name": "Generic Sea-Picro"
},
{ {
"name": "Silicognition RP2040-Shim" "name": "Silicognition RP2040-Shim"
}, },
......
{
"build": {
"arduino": {
"earlephilhower": {
"boot2_source": "boot2_w25q64jv_4_padded_checksum.S",
"usb_vid": "0x2E8A",
"usb_pid": "0xF00A"
}
},
"core": "earlephilhower",
"cpu": "cortex-m0plus",
"extra_flags": "-D ARDUINO_SEA_PICRO -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=500",
"f_cpu": "133000000L",
"hwids": [
[
"0x2E8A",
"0x00C0"
],
[
"0x2E8A",
"0xF00A"
]
],
"mcu": "rp2040",
"variant": "sea_picro"
},
"debug": {
"jlink_device": "RP2040_M0_0",
"openocd_target": "rp2040.cfg",
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
],
"name": "Sea-Picro",
"upload": {
"maximum_ram_size": 270336,
"maximum_size": 8388608,
"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",
"pico-debug"
]
},
"url": "https://github.com/joshajohnson/sea-picro",
"vendor": "Generic"
}
...@@ -205,7 +205,7 @@ def BuildGlobalMenuList(): ...@@ -205,7 +205,7 @@ def BuildGlobalMenuList():
print("menu.ipbtstack=IP/Bluetooth Stack") print("menu.ipbtstack=IP/Bluetooth Stack")
print("menu.uploadmethod=Upload Method") print("menu.uploadmethod=Upload Method")
def MakeBoard(name, vendor_name, product_name, vid, pid, pwr, boarddefine, flashsizemb, boot2, extra = None): def MakeBoard(name, vendor_name, product_name, vid, pid, pwr, boarddefine, flashsizemb, boot2, extra = None, board_url = None):
fssizelist = [ 0, 64 * 1024, 128 * 1024, 256 * 1024, 512 * 1024 ] fssizelist = [ 0, 64 * 1024, 128 * 1024, 256 * 1024, 512 * 1024 ]
for i in range(1, flashsizemb): for i in range(1, flashsizemb):
fssizelist.append(i * 1024 * 1024) fssizelist.append(i * 1024 * 1024)
...@@ -236,13 +236,13 @@ def MakeBoard(name, vendor_name, product_name, vid, pid, pwr, boarddefine, flash ...@@ -236,13 +236,13 @@ def MakeBoard(name, vendor_name, product_name, vid, pid, pwr, boarddefine, flash
elif name.startswith("adafruit") and "w25q080" in boot2: elif name.startswith("adafruit") and "w25q080" in boot2:
BuildBootW25Q(name) BuildBootW25Q(name)
BuildUploadMethodMenu(name) BuildUploadMethodMenu(name)
MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, flashsizemb, boot2, extra) MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, flashsizemb, boot2, extra, board_url)
global pkgjson global pkgjson
thisbrd = {} thisbrd = {}
thisbrd['name'] = "%s %s" % (vendor_name, product_name) thisbrd['name'] = "%s %s" % (vendor_name, product_name)
pkgjson['packages'][0]['platforms'][0]['boards'].append(thisbrd) pkgjson['packages'][0]['platforms'][0]['boards'].append(thisbrd)
def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, flashsizemb, boot2, extra): def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, flashsizemb, boot2, extra, board_url):
if type(pid) == list: if type(pid) == list:
pid = pid[0] pid = pid[0]
if extra != None: if extra != None:
...@@ -304,7 +304,7 @@ def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, f ...@@ -304,7 +304,7 @@ def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, f
"pico-debug" "pico-debug"
] ]
}, },
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/", "url": "BOARDURL",
"vendor": "VENDORNAME" "vendor": "VENDORNAME"
}\n"""\ }\n"""\
.replace('VARIANTNAME', name)\ .replace('VARIANTNAME', name)\
...@@ -312,6 +312,7 @@ def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, f ...@@ -312,6 +312,7 @@ def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, f
.replace('BOOT2', boot2)\ .replace('BOOT2', boot2)\
.replace('VID', vid.upper().replace("X", "x"))\ .replace('VID', vid.upper().replace("X", "x"))\
.replace('PID', pid.upper().replace("X", "x"))\ .replace('PID', pid.upper().replace("X", "x"))\
.replace('BOARDURL', board_url or 'https://www.raspberrypi.org/products/raspberry-pi-pico/')\
.replace('VENDORNAME', vendor_name)\ .replace('VENDORNAME', vendor_name)\
.replace('PRODUCTNAME', product_name)\ .replace('PRODUCTNAME', product_name)\
.replace('FLASHSIZE', str(1024*1024*flashsizemb))\ .replace('FLASHSIZE', str(1024*1024*flashsizemb))\
...@@ -413,6 +414,9 @@ MakeBoard("pimoroni_pga2040", "Pimoroni", "PGA2040", "0x2e8a", "0x1008", 250, "P ...@@ -413,6 +414,9 @@ MakeBoard("pimoroni_pga2040", "Pimoroni", "PGA2040", "0x2e8a", "0x1008", 250, "P
MakeBoard("pimoroni_plasma2040", "Pimoroni", "Plasma2040", "0x2e8a", "0x100a", 500, "PIMORONI_PLASMA2040", 2, "boot2_w25q080_2_padded_checksum") MakeBoard("pimoroni_plasma2040", "Pimoroni", "Plasma2040", "0x2e8a", "0x100a", 500, "PIMORONI_PLASMA2040", 2, "boot2_w25q080_2_padded_checksum")
MakeBoard("pimoroni_tiny2040", "Pimoroni", "Tiny2040", "0x2e8a", "0x100a", 500, "PIMORONI_TINY2040", 2, "boot2_w25q64jv_4_padded_checksum") MakeBoard("pimoroni_tiny2040", "Pimoroni", "Tiny2040", "0x2e8a", "0x100a", 500, "PIMORONI_TINY2040", 2, "boot2_w25q64jv_4_padded_checksum")
# Sea-Picro
MakeBoard("sea_picro", "Generic", "Sea-Picro", "0x2e8a", "0xf00a", 500, "SEA_PICRO", 8, "boot2_w25q64jv_4_padded_checksum", None, "https://github.com/joshajohnson/sea-picro")
# Silicognition # Silicognition
MakeBoard("silicognition_rp2040_shim", "Silicognition", "RP2040-Shim", "0x1209", "0xf502", 500, "SILICOGNITION_RP2040_SHIM", 4, "boot2_generic_03h_4_padded_checksum") MakeBoard("silicognition_rp2040_shim", "Silicognition", "RP2040-Shim", "0x1209", "0xf502", 500, "SILICOGNITION_RP2040_SHIM", 4, "boot2_generic_03h_4_padded_checksum")
......
#pragma once
// Pin definitions taken from:
// https://github.com/joshajohnson/sea-picro/blob/master/documentation/pinout/sea-picro-top-pinout-rory-render.png
// LEDs not pinned out
#define PIN_LED (31u)
// Serial
#define PIN_SERIAL1_TX (0u)
#define PIN_SERIAL1_RX (1u)
// Not pinned out
#define PIN_SERIAL2_TX (31u)
#define PIN_SERIAL2_RX (31u)
// SPI
#define PIN_SPI0_MISO (20u)
#define PIN_SPI0_MOSI (23u)
#define PIN_SPI0_SCK (22u)
#define PIN_SPI0_SS (21u)
#define PIN_SPI1_MISO (12u)
#define PIN_SPI1_MOSI (13u)
#define PIN_SPI1_SCK (14u)
#define PIN_SPI1_SS (15u)
// Wire
#define PIN_WIRE0_SDA (4u)
#define PIN_WIRE0_SCL (5u)
// Not pinned out
#define PIN_WIRE1_SDA (2u)
#define PIN_WIRE1_SCL (3u)
#define SERIAL_HOWMANY (1u)
#define SPI_HOWMANY (2u)
#define WIRE_HOWMANY (2u)
#define PIN_NEOPIXEL (25u)
#include "../generic/common.h"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment