Skip to content

Commit a84c771

Browse files
Add the new MiniMain ESP32S2 board created by Department of Alchemy. (#6963)
1 parent 45f4bef commit a84c771

File tree

6 files changed

+285
-0
lines changed

6 files changed

+285
-0
lines changed

Diff for: boards.txt

+169
Original file line numberDiff line numberDiff line change
@@ -15482,3 +15482,172 @@ aw2eth.menu.DebugLevel.verbose=Verbose
1548215482
aw2eth.menu.DebugLevel.verbose.build.code_debug=5
1548315483

1548415484
##############################################################
15485+
15486+
department_of_alchemy_minimain_esp32s2.name=Deparment of Alchemy MiniMain ESP32-S2
15487+
department_of_alchemy_minimain_esp32s2.vid.0=0x303A
15488+
department_of_alchemy_minimain_esp32s2.pid.0=0x80FF
15489+
15490+
department_of_alchemy_minimain_esp32s2.bootloader.tool=esptool_py
15491+
department_of_alchemy_minimain_esp32s2.bootloader.tool.default=esptool_py
15492+
15493+
department_of_alchemy_minimain_esp32s2.upload.tool=esptool_py
15494+
department_of_alchemy_minimain_esp32s2.upload.tool.default=esptool_py
15495+
department_of_alchemy_minimain_esp32s2.upload.tool.network=esp_ota
15496+
15497+
department_of_alchemy_minimain_esp32s2.upload.maximum_size=1310720
15498+
department_of_alchemy_minimain_esp32s2.upload.maximum_data_size=327680
15499+
department_of_alchemy_minimain_esp32s2.upload.flags=
15500+
department_of_alchemy_minimain_esp32s2.upload.extra_flags=
15501+
department_of_alchemy_minimain_esp32s2.upload.use_1200bps_touch=true
15502+
department_of_alchemy_minimain_esp32s2.upload.wait_for_upload_port=true
15503+
15504+
department_of_alchemy_minimain_esp32s2.serial.disableDTR=false
15505+
department_of_alchemy_minimain_esp32s2.serial.disableRTS=false
15506+
15507+
department_of_alchemy_minimain_esp32s2.build.tarch=xtensa
15508+
department_of_alchemy_minimain_esp32s2.build.bootloader_addr=0x1000
15509+
department_of_alchemy_minimain_esp32s2.build.target=esp32s2
15510+
department_of_alchemy_minimain_esp32s2.build.mcu=esp32s2
15511+
department_of_alchemy_minimain_esp32s2.build.core=esp32
15512+
department_of_alchemy_minimain_esp32s2.build.variant=department_of_alchemy_minimain_esp32s2
15513+
department_of_alchemy_minimain_esp32s2.build.board=DEPARTMENT_OF_ALCHEMY_MINIMAIN_ESP32S2
15514+
15515+
department_of_alchemy_minimain_esp32s2.build.cdc_on_boot=1
15516+
department_of_alchemy_minimain_esp32s2.build.msc_on_boot=0
15517+
department_of_alchemy_minimain_esp32s2.build.dfu_on_boot=0
15518+
department_of_alchemy_minimain_esp32s2.build.f_cpu=240000000L
15519+
department_of_alchemy_minimain_esp32s2.build.flash_size=4MB
15520+
department_of_alchemy_minimain_esp32s2.build.flash_freq=80m
15521+
department_of_alchemy_minimain_esp32s2.build.flash_mode=qio
15522+
department_of_alchemy_minimain_esp32s2.build.boot=qio
15523+
department_of_alchemy_minimain_esp32s2.build.partitions=default
15524+
department_of_alchemy_minimain_esp32s2.build.defines=
15525+
15526+
department_of_alchemy_minimain_esp32s2.menu.CDCOnBoot.cdc=Enabled
15527+
department_of_alchemy_minimain_esp32s2.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
15528+
department_of_alchemy_minimain_esp32s2.menu.CDCOnBoot.default=Disabled
15529+
department_of_alchemy_minimain_esp32s2.menu.CDCOnBoot.default.build.cdc_on_boot=0
15530+
15531+
department_of_alchemy_minimain_esp32s2.menu.MSCOnBoot.default=Disabled
15532+
department_of_alchemy_minimain_esp32s2.menu.MSCOnBoot.default.build.msc_on_boot=0
15533+
department_of_alchemy_minimain_esp32s2.menu.MSCOnBoot.msc=Enabled
15534+
department_of_alchemy_minimain_esp32s2.menu.MSCOnBoot.msc.build.msc_on_boot=1
15535+
15536+
department_of_alchemy_minimain_esp32s2.menu.DFUOnBoot.default=Disabled
15537+
department_of_alchemy_minimain_esp32s2.menu.DFUOnBoot.default.build.dfu_on_boot=0
15538+
department_of_alchemy_minimain_esp32s2.menu.DFUOnBoot.dfu=Enabled
15539+
department_of_alchemy_minimain_esp32s2.menu.DFUOnBoot.dfu.build.dfu_on_boot=1
15540+
15541+
department_of_alchemy_minimain_esp32s2.menu.UploadMode.cdc=Internal USB
15542+
department_of_alchemy_minimain_esp32s2.menu.UploadMode.cdc.upload.use_1200bps_touch=true
15543+
department_of_alchemy_minimain_esp32s2.menu.UploadMode.cdc.upload.wait_for_upload_port=true
15544+
department_of_alchemy_minimain_esp32s2.menu.UploadMode.default=UART0
15545+
department_of_alchemy_minimain_esp32s2.menu.UploadMode.default.upload.use_1200bps_touch=false
15546+
department_of_alchemy_minimain_esp32s2.menu.UploadMode.default.upload.wait_for_upload_port=false
15547+
15548+
department_of_alchemy_minimain_esp32s2.menu.PSRAM.enabled=Enabled
15549+
department_of_alchemy_minimain_esp32s2.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM
15550+
department_of_alchemy_minimain_esp32s2.menu.PSRAM.disabled=Disabled
15551+
department_of_alchemy_minimain_esp32s2.menu.PSRAM.disabled.build.defines=
15552+
15553+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.tinyuf2=TinyUF2 4MB (1.3MB APP/960KB FFAT)
15554+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.tinyuf2.build.custom_bootloader=bootloader-tinyuf2
15555+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.tinyuf2.build.custom_partitions=partitions-4MB-tinyuf2
15556+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.tinyuf2.upload.maximum_size=1441792
15557+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.tinyuf2.upload.extra_flags=0x2d0000 "{runtime.platform.path}/variants/{build.variant}/tinyuf2.bin"
15558+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
15559+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.default.build.partitions=default
15560+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
15561+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
15562+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
15563+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.minimal.build.partitions=minimal
15564+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
15565+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.no_ota.build.partitions=no_ota
15566+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
15567+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
15568+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
15569+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
15570+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
15571+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
15572+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
15573+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
15574+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
15575+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
15576+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
15577+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.huge_app.build.partitions=huge_app
15578+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
15579+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
15580+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
15581+
department_of_alchemy_minimain_esp32s2.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
15582+
15583+
department_of_alchemy_minimain_esp32s2.menu.CPUFreq.240=240MHz (WiFi)
15584+
department_of_alchemy_minimain_esp32s2.menu.CPUFreq.240.build.f_cpu=240000000L
15585+
department_of_alchemy_minimain_esp32s2.menu.CPUFreq.160=160MHz (WiFi)
15586+
department_of_alchemy_minimain_esp32s2.menu.CPUFreq.160.build.f_cpu=160000000L
15587+
department_of_alchemy_minimain_esp32s2.menu.CPUFreq.80=80MHz (WiFi)
15588+
department_of_alchemy_minimain_esp32s2.menu.CPUFreq.80.build.f_cpu=80000000L
15589+
department_of_alchemy_minimain_esp32s2.menu.CPUFreq.40=40MHz
15590+
department_of_alchemy_minimain_esp32s2.menu.CPUFreq.40.build.f_cpu=40000000L
15591+
department_of_alchemy_minimain_esp32s2.menu.CPUFreq.20=20MHz
15592+
department_of_alchemy_minimain_esp32s2.menu.CPUFreq.20.build.f_cpu=20000000L
15593+
department_of_alchemy_minimain_esp32s2.menu.CPUFreq.10=10MHz
15594+
department_of_alchemy_minimain_esp32s2.menu.CPUFreq.10.build.f_cpu=10000000L
15595+
15596+
department_of_alchemy_minimain_esp32s2.menu.FlashMode.qio=QIO
15597+
department_of_alchemy_minimain_esp32s2.menu.FlashMode.qio.build.flash_mode=dio
15598+
department_of_alchemy_minimain_esp32s2.menu.FlashMode.qio.build.boot=qio
15599+
department_of_alchemy_minimain_esp32s2.menu.FlashMode.dio=DIO
15600+
department_of_alchemy_minimain_esp32s2.menu.FlashMode.dio.build.flash_mode=dio
15601+
department_of_alchemy_minimain_esp32s2.menu.FlashMode.dio.build.boot=dio
15602+
department_of_alchemy_minimain_esp32s2.menu.FlashMode.qout=QOUT
15603+
department_of_alchemy_minimain_esp32s2.menu.FlashMode.qout.build.flash_mode=dout
15604+
department_of_alchemy_minimain_esp32s2.menu.FlashMode.qout.build.boot=qout
15605+
department_of_alchemy_minimain_esp32s2.menu.FlashMode.dout=DOUT
15606+
department_of_alchemy_minimain_esp32s2.menu.FlashMode.dout.build.flash_mode=dout
15607+
department_of_alchemy_minimain_esp32s2.menu.FlashMode.dout.build.boot=dout
15608+
15609+
department_of_alchemy_minimain_esp32s2.menu.FlashFreq.80=80MHz
15610+
department_of_alchemy_minimain_esp32s2.menu.FlashFreq.80.build.flash_freq=80m
15611+
department_of_alchemy_minimain_esp32s2.menu.FlashFreq.40=40MHz
15612+
department_of_alchemy_minimain_esp32s2.menu.FlashFreq.40.build.flash_freq=40m
15613+
15614+
department_of_alchemy_minimain_esp32s2.menu.FlashSize.4M=4MB (32Mb)
15615+
department_of_alchemy_minimain_esp32s2.menu.FlashSize.4M.build.flash_size=4MB
15616+
department_of_alchemy_minimain_esp32s2.menu.FlashSize.8M=8MB (64Mb)
15617+
department_of_alchemy_minimain_esp32s2.menu.FlashSize.8M.build.flash_size=8MB
15618+
department_of_alchemy_minimain_esp32s2.menu.FlashSize.8M.build.partitions=default_8MB
15619+
department_of_alchemy_minimain_esp32s2.menu.FlashSize.2M=2MB (16Mb)
15620+
department_of_alchemy_minimain_esp32s2.menu.FlashSize.2M.build.flash_size=2MB
15621+
department_of_alchemy_minimain_esp32s2.menu.FlashSize.2M.build.partitions=minimal
15622+
department_of_alchemy_minimain_esp32s2.menu.FlashSize.16M=16MB (128Mb)
15623+
department_of_alchemy_minimain_esp32s2.menu.FlashSize.16M.build.flash_size=16MB
15624+
15625+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.921600=921600
15626+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.921600.upload.speed=921600
15627+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.115200=115200
15628+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.115200.upload.speed=115200
15629+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.256000.windows=256000
15630+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.256000.upload.speed=256000
15631+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.230400.windows.upload.speed=256000
15632+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.230400=230400
15633+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.230400.upload.speed=230400
15634+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.460800.linux=460800
15635+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.460800.macosx=460800
15636+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.460800.upload.speed=460800
15637+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.512000.windows=512000
15638+
department_of_alchemy_minimain_esp32s2.menu.UploadSpeed.512000.upload.speed=512000
15639+
15640+
department_of_alchemy_minimain_esp32s2.menu.DebugLevel.none=None
15641+
department_of_alchemy_minimain_esp32s2.menu.DebugLevel.none.build.code_debug=0
15642+
department_of_alchemy_minimain_esp32s2.menu.DebugLevel.error=Error
15643+
department_of_alchemy_minimain_esp32s2.menu.DebugLevel.error.build.code_debug=1
15644+
department_of_alchemy_minimain_esp32s2.menu.DebugLevel.warn=Warn
15645+
department_of_alchemy_minimain_esp32s2.menu.DebugLevel.warn.build.code_debug=2
15646+
department_of_alchemy_minimain_esp32s2.menu.DebugLevel.info=Info
15647+
department_of_alchemy_minimain_esp32s2.menu.DebugLevel.info.build.code_debug=3
15648+
department_of_alchemy_minimain_esp32s2.menu.DebugLevel.debug=Debug
15649+
department_of_alchemy_minimain_esp32s2.menu.DebugLevel.debug.build.code_debug=4
15650+
department_of_alchemy_minimain_esp32s2.menu.DebugLevel.verbose=Verbose
15651+
department_of_alchemy_minimain_esp32s2.menu.DebugLevel.verbose.build.code_debug=5
15652+
15653+
##############################################################
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ESP-IDF Partition Table
2+
# Name, Type, SubType, Offset, Size, Flags
3+
# bootloader.bin,, 0x1000, 32K
4+
# partition table, 0x8000, 4K
5+
6+
nvs, data, nvs, 0x9000, 20K,
7+
otadata, data, ota, 0xe000, 8K,
8+
ota_0, 0, ota_0, 0x10000, 1408K,
9+
ota_1, 0, ota_1, 0x170000, 1408K,
10+
uf2, app, factory,0x2d0000, 256K,
11+
ffat, data, fat, 0x310000, 960K,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
7+
#define USB_VID 0x303a
8+
#define USB_PID 0x80FF
9+
#define USB_MANUFACTURER "Department of Alchemy"
10+
#define USB_PRODUCT "MiniMain ESP32-S2"
11+
#define USB_SERIAL "" // Empty string for MAC adddress
12+
13+
14+
#define EXTERNAL_NUM_INTERRUPTS 46
15+
#define NUM_DIGITAL_PINS 48
16+
#define NUM_ANALOG_INPUTS 20
17+
18+
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
19+
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
20+
#define digitalPinHasPWM(p) (p < 46)
21+
22+
#define LED_BUILTIN 13
23+
24+
#define PIN_NEOPIXEL 33
25+
#define NEOPIXEL_NUM 1 // number of neopixels
26+
#define NEOPIXEL_POWER 21 // power pin
27+
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
28+
#define PIN_SERVO 2 // servo pin
29+
#define PIN_ISOLATED_INPUT 40 // optocoupled input
30+
31+
static const uint8_t SDA = 3;
32+
static const uint8_t SCL = 4;
33+
34+
static const uint8_t SS = 42;
35+
static const uint8_t MOSI = 35;
36+
static const uint8_t SCK = 36;
37+
static const uint8_t MISO = 37;
38+
39+
static const uint8_t A0 = 18;
40+
static const uint8_t A1 = 17;
41+
static const uint8_t A2 = 16;
42+
static const uint8_t A3 = 15;
43+
static const uint8_t A4 = 14;
44+
static const uint8_t A5 = 8;
45+
46+
47+
static const uint8_t TX = 39;
48+
static const uint8_t RX = 38;
49+
#define TX1 TX
50+
#define RX1 RX
51+
52+
static const uint8_t T2 = 2;
53+
static const uint8_t T5 = 5;
54+
static const uint8_t T6 = 6;
55+
static const uint8_t T8 = 8;
56+
static const uint8_t T9 = 9;
57+
static const uint8_t T10 = 10;
58+
static const uint8_t T11 = 11;
59+
static const uint8_t T12 = 12;
60+
static const uint8_t T13 = 13;
61+
static const uint8_t T14 = 14;
62+
63+
static const uint8_t DAC1 = 17;
64+
static const uint8_t DAC2 = 18;
65+
66+
#endif /* Pins_Arduino_h */
144 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* The MIT License (MIT)
3+
*
4+
* Copyright (c) 2021 Ha Thach (tinyusb.org) for Adafruit Industries
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
25+
26+
#include "esp32-hal-gpio.h"
27+
#include "pins_arduino.h"
28+
29+
extern "C" {
30+
31+
// Initialize variant/board, called before setup()
32+
void initVariant(void)
33+
{
34+
// This board has a power control pin, and we must set it to output and high
35+
// in order to enable the NeoPixels.
36+
pinMode(NEOPIXEL_POWER, OUTPUT);
37+
digitalWrite(NEOPIXEL_POWER, HIGH);
38+
}
39+
}

0 commit comments

Comments
 (0)