Skip to content

Commit d251984

Browse files
Added UM FeatherS2 and UM ProS2 boards to boards.txt (espressif#4188)
* Added UM FeatherS2 and UM ProS2 boards to boards.txt Updated the name of TinyPICO to UM TinyPICO in boards.txt * Added VID/PID/Product names for TinyPICO, ProS2 & FeatherS2 Setup variant folders for each board * Removed unneeded stuff from FeatherS2 & ProS2 menu options * Added Serial CDC output default for FeatherS2 and ProS2 * Removed unneeded stuff from FeatherS2 & ProS2 menu options * Rebase from upstream and fixed Serial Output settings for FeatherS2 and ProS2 Co-authored-by: Seon Rozenblum <[email protected]>
1 parent 2cebf72 commit d251984

File tree

4 files changed

+423
-2
lines changed

4 files changed

+423
-2
lines changed

boards.txt

Lines changed: 267 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ pico32.menu.DebugLevel.verbose=Verbose
470470
pico32.menu.DebugLevel.verbose.build.code_debug=5
471471

472472
##############################################################
473-
tinypico.name=TinyPICO
473+
tinypico.name=UM TinyPICO
474474

475475
tinypico.upload.tool=esptool_py
476476
tinypico.upload.maximum_size=1310720
@@ -482,7 +482,7 @@ tinypico.serial.disableRTS=true
482482

483483
tinypico.build.mcu=esp32
484484
tinypico.build.core=esp32
485-
tinypico.build.variant=pico32
485+
tinypico.build.variant=um_tinypico
486486
tinypico.build.board=TINYPICO
487487

488488
tinypico.build.f_cpu=240000000L
@@ -547,6 +547,271 @@ tinypico.menu.DebugLevel.debug.build.code_debug=4
547547
tinypico.menu.DebugLevel.verbose=Verbose
548548
tinypico.menu.DebugLevel.verbose.build.code_debug=5
549549

550+
##############################################################
551+
feathers2.name=UM FeatherS2
552+
feathers2.vid.0=0x239A
553+
feathers2.pid.0=0x80AB
554+
555+
feathers2.upload.tool=esptool_py
556+
feathers2.upload.maximum_size=1310720
557+
feathers2.upload.maximum_data_size=327680
558+
feathers2.upload.flags=
559+
560+
feathers2.serial.disableDTR=true
561+
feathers2.serial.disableRTS=true
562+
563+
feathers2.build.mcu=esp32s2
564+
feathers2.build.core=esp32
565+
feathers2.build.variant=um_feathers2
566+
feathers2.build.board=FEATHERS2
567+
568+
feathers2.build.serial=1
569+
feathers2.build.f_cpu=240000000L
570+
feathers2.build.flash_size=16MB
571+
feathers2.build.flash_freq=80m
572+
feathers2.build.flash_mode=dio
573+
feathers2.build.boot=qio
574+
feathers2.build.partitions=fatflash
575+
feathers2.build.defines=
576+
577+
feathers2.menu.SerialMode.cdc=USB CDC
578+
feathers2.menu.SerialMode.cdc.build.serial=1
579+
feathers2.menu.SerialMode.default=UART0
580+
feathers2.menu.SerialMode.default.build.serial=0
581+
582+
feathers2.menu.PSRAM.enabled=Enabled
583+
feathers2.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM
584+
feathers2.menu.PSRAM.disabled=Disabled
585+
feathers2.menu.PSRAM.disabled.build.defines=
586+
587+
feathers2.menu.UploadMode.cdc=USB CDC
588+
feathers2.menu.UploadMode.cdc.upload.flags=--no-stub
589+
feathers2.menu.UploadMode.cdc.upload.tool=esptool_py
590+
feathers2.menu.UploadMode.cdc.serial.disableDTR=false
591+
feathers2.menu.UploadMode.cdc.serial.disableRTS=false
592+
feathers2.menu.UploadMode.default=Default Uart - External
593+
feathers2.menu.UploadMode.default.upload.flags=
594+
feathers2.menu.UploadMode.default.upload.tool=esptool_py
595+
feathers2.menu.UploadMode.default.serial.disableDTR=true
596+
feathers2.menu.UploadMode.default.serial.disableRTS=true
597+
598+
feathers2.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FAT)
599+
feathers2.menu.PartitionScheme.fatflash.build.partitions=ffat
600+
feathers2.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
601+
feathers2.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9MB FATFS)
602+
feathers2.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
603+
feathers2.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
604+
feathers2.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
605+
feathers2.menu.PartitionScheme.default.build.partitions=default
606+
feathers2.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
607+
feathers2.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
608+
feathers2.menu.PartitionScheme.default_8MB=8M Flash (3MB APP/1.5MB FAT)
609+
feathers2.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
610+
feathers2.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
611+
feathers2.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
612+
feathers2.menu.PartitionScheme.minimal.build.partitions=minimal
613+
feathers2.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
614+
feathers2.menu.PartitionScheme.no_ota.build.partitions=no_ota
615+
feathers2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
616+
feathers2.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
617+
feathers2.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
618+
feathers2.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
619+
feathers2.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
620+
feathers2.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
621+
feathers2.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
622+
feathers2.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
623+
feathers2.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
624+
feathers2.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
625+
feathers2.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
626+
feathers2.menu.PartitionScheme.huge_app.build.partitions=huge_app
627+
feathers2.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
628+
feathers2.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
629+
feathers2.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
630+
feathers2.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
631+
632+
feathers2.menu.CPUFreq.240=240MHz (WiFi)
633+
feathers2.menu.CPUFreq.240.build.f_cpu=240000000L
634+
feathers2.menu.CPUFreq.160=160MHz (WiFi)
635+
feathers2.menu.CPUFreq.160.build.f_cpu=160000000L
636+
feathers2.menu.CPUFreq.80=80MHz (WiFi)
637+
feathers2.menu.CPUFreq.80.build.f_cpu=80000000L
638+
feathers2.menu.CPUFreq.40=40MHz
639+
feathers2.menu.CPUFreq.40.build.f_cpu=40000000L
640+
feathers2.menu.CPUFreq.20=20MHz
641+
feathers2.menu.CPUFreq.20.build.f_cpu=20000000L
642+
feathers2.menu.CPUFreq.10=10MHz
643+
feathers2.menu.CPUFreq.10.build.f_cpu=10000000L
644+
645+
feathers2.menu.FlashSize.16M=16MB (128Mb)
646+
feathers2.menu.FlashSize.16M.build.flash_size=16MB
647+
feathers2.menu.FlashSize.4M=4MB (32Mb)
648+
feathers2.menu.FlashSize.4M.build.flash_size=4MB
649+
feathers2.menu.FlashSize.8M=8MB (64Mb)
650+
feathers2.menu.FlashSize.8M.build.flash_size=8MB
651+
feathers2.menu.FlashSize.8M.build.partitions=default_8MB
652+
feathers2.menu.FlashSize.2M=2MB (16Mb)
653+
feathers2.menu.FlashSize.2M.build.flash_size=2MB
654+
feathers2.menu.FlashSize.2M.build.partitions=minimal
655+
656+
feathers2.menu.UploadSpeed.921600=921600
657+
feathers2.menu.UploadSpeed.921600.upload.speed=921600
658+
feathers2.menu.UploadSpeed.115200=115200
659+
feathers2.menu.UploadSpeed.115200.upload.speed=115200
660+
feathers2.menu.UploadSpeed.256000.windows=256000
661+
feathers2.menu.UploadSpeed.256000.upload.speed=256000
662+
feathers2.menu.UploadSpeed.230400.windows.upload.speed=256000
663+
feathers2.menu.UploadSpeed.230400=230400
664+
feathers2.menu.UploadSpeed.230400.upload.speed=230400
665+
feathers2.menu.UploadSpeed.460800.linux=460800
666+
feathers2.menu.UploadSpeed.460800.macosx=460800
667+
feathers2.menu.UploadSpeed.460800.upload.speed=460800
668+
669+
feathers2.menu.DebugLevel.none=None
670+
feathers2.menu.DebugLevel.none.build.code_debug=0
671+
feathers2.menu.DebugLevel.error=Error
672+
feathers2.menu.DebugLevel.error.build.code_debug=1
673+
feathers2.menu.DebugLevel.warn=Warn
674+
feathers2.menu.DebugLevel.warn.build.code_debug=2
675+
feathers2.menu.DebugLevel.info=Info
676+
feathers2.menu.DebugLevel.info.build.code_debug=3
677+
feathers2.menu.DebugLevel.debug=Debug
678+
feathers2.menu.DebugLevel.debug.build.code_debug=4
679+
feathers2.menu.DebugLevel.verbose=Verbose
680+
feathers2.menu.DebugLevel.verbose.build.code_debug=5
681+
682+
##############################################################
683+
pros2.name=UM ProS2
684+
pros2.vid.0=0x239A
685+
pros2.pid.0=0x80A9
686+
687+
pros2.upload.tool=esptool_py
688+
pros2.upload.maximum_size=1310720
689+
pros2.upload.maximum_data_size=327680
690+
pros2.upload.flags=
691+
692+
pros2.serial.disableDTR=true
693+
pros2.serial.disableRTS=true
694+
695+
pros2.build.mcu=esp32s2
696+
pros2.build.core=esp32
697+
pros2.build.variant=um_pros2
698+
pros2.build.board=PROS2
699+
700+
pros2.build.serial=1
701+
pros2.build.f_cpu=240000000L
702+
pros2.build.flash_size=16MB
703+
pros2.build.flash_freq=80m
704+
pros2.build.flash_mode=dio
705+
pros2.build.boot=qio
706+
pros2.build.partitions=fatflash
707+
pros2.build.defines=
708+
709+
pros2.menu.SerialMode.cdc=USB CDC
710+
pros2.menu.SerialMode.cdc.build.serial=1
711+
pros2.menu.SerialMode.default=UART0
712+
pros2.menu.SerialMode.default.build.serial=0
713+
714+
pros2.menu.PSRAM.enabled=Enabled
715+
pros2.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM
716+
pros2.menu.PSRAM.disabled=Disabled
717+
pros2.menu.PSRAM.disabled.build.defines=
718+
719+
pros2.menu.UploadMode.cdc=USB CDC
720+
pros2.menu.UploadMode.cdc.upload.flags=--no-stub
721+
pros2.menu.UploadMode.cdc.upload.tool=esptool_py
722+
pros2.menu.UploadMode.cdc.serial.disableDTR=false
723+
pros2.menu.UploadMode.cdc.serial.disableRTS=false
724+
pros2.menu.UploadMode.default=Default Uart - External
725+
pros2.menu.UploadMode.default.upload.flags=
726+
pros2.menu.UploadMode.default.upload.tool=esptool_py
727+
pros2.menu.UploadMode.default.serial.disableDTR=true
728+
pros2.menu.UploadMode.default.serial.disableRTS=true
729+
730+
pros2.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FAT)
731+
pros2.menu.PartitionScheme.fatflash.build.partitions=ffat
732+
pros2.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
733+
pros2.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9MB FATFS)
734+
pros2.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
735+
pros2.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
736+
pros2.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
737+
pros2.menu.PartitionScheme.default.build.partitions=default
738+
pros2.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
739+
pros2.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
740+
pros2.menu.PartitionScheme.default_8MB=8M Flash (3MB APP/1.5MB FAT)
741+
pros2.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
742+
pros2.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
743+
pros2.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
744+
pros2.menu.PartitionScheme.minimal.build.partitions=minimal
745+
pros2.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
746+
pros2.menu.PartitionScheme.no_ota.build.partitions=no_ota
747+
pros2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
748+
pros2.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
749+
pros2.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
750+
pros2.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
751+
pros2.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
752+
pros2.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
753+
pros2.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
754+
pros2.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
755+
pros2.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
756+
pros2.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
757+
pros2.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
758+
pros2.menu.PartitionScheme.huge_app.build.partitions=huge_app
759+
pros2.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
760+
pros2.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
761+
pros2.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
762+
pros2.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
763+
764+
pros2.menu.CPUFreq.240=240MHz (WiFi)
765+
pros2.menu.CPUFreq.240.build.f_cpu=240000000L
766+
pros2.menu.CPUFreq.160=160MHz (WiFi)
767+
pros2.menu.CPUFreq.160.build.f_cpu=160000000L
768+
pros2.menu.CPUFreq.80=80MHz (WiFi)
769+
pros2.menu.CPUFreq.80.build.f_cpu=80000000L
770+
pros2.menu.CPUFreq.40=40MHz
771+
pros2.menu.CPUFreq.40.build.f_cpu=40000000L
772+
pros2.menu.CPUFreq.20=20MHz
773+
pros2.menu.CPUFreq.20.build.f_cpu=20000000L
774+
pros2.menu.CPUFreq.10=10MHz
775+
pros2.menu.CPUFreq.10.build.f_cpu=10000000L
776+
777+
pros2.menu.FlashSize.16M=16MB (128Mb)
778+
pros2.menu.FlashSize.16M.build.flash_size=16MB
779+
pros2.menu.FlashSize.4M=4MB (32Mb)
780+
pros2.menu.FlashSize.4M.build.flash_size=4MB
781+
pros2.menu.FlashSize.8M=8MB (64Mb)
782+
pros2.menu.FlashSize.8M.build.flash_size=8MB
783+
pros2.menu.FlashSize.8M.build.partitions=default_8MB
784+
pros2.menu.FlashSize.2M=2MB (16Mb)
785+
pros2.menu.FlashSize.2M.build.flash_size=2MB
786+
pros2.menu.FlashSize.2M.build.partitions=minimal
787+
788+
pros2.menu.UploadSpeed.921600=921600
789+
pros2.menu.UploadSpeed.921600.upload.speed=921600
790+
pros2.menu.UploadSpeed.115200=115200
791+
pros2.menu.UploadSpeed.115200.upload.speed=115200
792+
pros2.menu.UploadSpeed.256000.windows=256000
793+
pros2.menu.UploadSpeed.256000.upload.speed=256000
794+
pros2.menu.UploadSpeed.230400.windows.upload.speed=256000
795+
pros2.menu.UploadSpeed.230400=230400
796+
pros2.menu.UploadSpeed.230400.upload.speed=230400
797+
pros2.menu.UploadSpeed.460800.linux=460800
798+
pros2.menu.UploadSpeed.460800.macosx=460800
799+
pros2.menu.UploadSpeed.460800.upload.speed=460800
800+
801+
802+
pros2.menu.DebugLevel.none=None
803+
pros2.menu.DebugLevel.none.build.code_debug=0
804+
pros2.menu.DebugLevel.error=Error
805+
pros2.menu.DebugLevel.error.build.code_debug=1
806+
pros2.menu.DebugLevel.warn=Warn
807+
pros2.menu.DebugLevel.warn.build.code_debug=2
808+
pros2.menu.DebugLevel.info=Info
809+
pros2.menu.DebugLevel.info.build.code_debug=3
810+
pros2.menu.DebugLevel.debug=Debug
811+
pros2.menu.DebugLevel.debug.build.code_debug=4
812+
pros2.menu.DebugLevel.verbose=Verbose
813+
pros2.menu.DebugLevel.verbose.build.code_debug=5
814+
550815
##############################################################
551816
magicbit.name=MagicBit
552817

variants/um_feathers2/pins_arduino.h

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define USB_VID 0x239A
7+
#define USB_PID 0x80AB
8+
#define USB_MANUFACTURER "Unexpected Maker"
9+
#define USB_PRODUCT "FeatherS2"
10+
#define USB_SERIAL ""
11+
12+
#define EXTERNAL_NUM_INTERRUPTS 46
13+
#define NUM_DIGITAL_PINS 48
14+
#define NUM_ANALOG_INPUTS 20
15+
16+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
17+
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
18+
#define digitalPinHasPWM(p) (p < 46)
19+
20+
static const uint8_t TX = 43;
21+
static const uint8_t RX = 44;
22+
23+
static const uint8_t SDA = 8;
24+
static const uint8_t SCL = 9;
25+
26+
static const uint8_t SS = 34;
27+
static const uint8_t MOSI = 35;
28+
static const uint8_t MISO = 37;
29+
static const uint8_t SDO = 35;
30+
static const uint8_t SDI = 37;
31+
static const uint8_t SCK = 36;
32+
33+
static const uint8_t A0 = 1;
34+
static const uint8_t A1 = 2;
35+
static const uint8_t A2 = 3;
36+
static const uint8_t A3 = 4;
37+
static const uint8_t A4 = 5;
38+
static const uint8_t A5 = 6;
39+
static const uint8_t A6 = 7;
40+
static const uint8_t A7 = 8;
41+
static const uint8_t A8 = 9;
42+
static const uint8_t A9 = 10;
43+
static const uint8_t A10 = 11;
44+
static const uint8_t A11 = 12;
45+
static const uint8_t A12 = 13;
46+
static const uint8_t A13 = 14;
47+
static const uint8_t A14 = 15;
48+
static const uint8_t A15 = 16;
49+
static const uint8_t A16 = 17;
50+
static const uint8_t A17 = 18;
51+
static const uint8_t A18 = 19;
52+
static const uint8_t A19 = 20;
53+
54+
static const uint8_t T1 = 1;
55+
static const uint8_t T2 = 2;
56+
static const uint8_t T3 = 3;
57+
static const uint8_t T4 = 4;
58+
static const uint8_t T5 = 5;
59+
static const uint8_t T6 = 6;
60+
static const uint8_t T7 = 7;
61+
static const uint8_t T8 = 8;
62+
static const uint8_t T9 = 9;
63+
static const uint8_t T10 = 10;
64+
static const uint8_t T11 = 11;
65+
static const uint8_t T12 = 12;
66+
static const uint8_t T13 = 13;
67+
static const uint8_t T14 = 14;
68+
69+
static const uint8_t DAC1 = 17;
70+
static const uint8_t DAC2 = 18;
71+
72+
static const uint8_t LDO_2_POWER = 21;
73+
74+
static const uint8_t APA_DATA = 40;
75+
static const uint8_t APA_CLK = 45;
76+
77+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)