diff --git a/boards.txt b/boards.txt index 26ec251ecfe..2c622c52861 100644 --- a/boards.txt +++ b/boards.txt @@ -34919,6 +34919,184 @@ XIAO_ESP32S3.menu.EraseFlash.all.upload.erase_cmd=-e ############################################################## +XIAO_ESP32S3_PLUS.name=XIAO_ESP32S3_PLUS +XIAO_ESP32S3_PLUS.vid.0=0x2886 +XIAO_ESP32S3_PLUS.pid.0=0x0063 +XIAO_ESP32S3_PLUS.vid.1=0x2886 +XIAO_ESP32S3_PLUS.pid.1=0x8063 + +XIAO_ESP32S3_PLUS.bootloader.tool=esptool_py +XIAO_ESP32S3_PLUS.bootloader.tool.default=esptool_py + +XIAO_ESP32S3_PLUS.upload.tool=esptool_py +XIAO_ESP32S3_PLUS.upload.tool.default=esptool_py +XIAO_ESP32S3_PLUS.upload.tool.network=esp_ota + +XIAO_ESP32S3_PLUS.upload.maximum_size=1310720 +XIAO_ESP32S3_PLUS.upload.maximum_data_size=327680 +XIAO_ESP32S3_PLUS.upload.flags= +XIAO_ESP32S3_PLUS.upload.extra_flags= +XIAO_ESP32S3_PLUS.upload.use_1200bps_touch=false +XIAO_ESP32S3_PLUS.upload.wait_for_upload_port=false + +XIAO_ESP32S3_PLUS.serial.disableDTR=false +XIAO_ESP32S3_PLUS.serial.disableRTS=false + +XIAO_ESP32S3_PLUS.build.tarch=xtensa +XIAO_ESP32S3_PLUS.build.bootloader_addr=0x0 +XIAO_ESP32S3_PLUS.build.target=esp32s3 +XIAO_ESP32S3_PLUS.build.mcu=esp32s3 +XIAO_ESP32S3_PLUS.build.core=esp32 +XIAO_ESP32S3_PLUS.build.variant=XIAO_ESP32S3_PLUS +XIAO_ESP32S3_PLUS.build.board=XIAO_ESP32S3_PLUS + +XIAO_ESP32S3_PLUS.build.usb_mode=0 +XIAO_ESP32S3_PLUS.build.cdc_on_boot=1 +XIAO_ESP32S3_PLUS.build.msc_on_boot=0 +XIAO_ESP32S3_PLUS.build.dfu_on_boot=0 +XIAO_ESP32S3_PLUS.build.f_cpu=240000000L +XIAO_ESP32S3_PLUS.build.flash_size=8MB +XIAO_ESP32S3.build.flash_freq=80m +XIAO_ESP32S3_PLUS.build.flash_mode=dio +XIAO_ESP32S3_PLUS.build.boot=qio +XIAO_ESP32S3_PLUS.build.boot_freq=80m +XIAO_ESP32S3_PLUS.build.partitions=default_8MB +XIAO_ESP32S3_PLUS.build.defines= +XIAO_ESP32S3_PLUS.build.loop_core= +XIAO_ESP32S3_PLUS.build.event_core= +XIAO_ESP32S3_PLUS.build.psram_type=qspi +XIAO_ESP32S3_PLUS.build.memory_type={build.boot}_{build.psram_type} + +XIAO_ESP32S3_PLUS.menu.JTAGAdapter.default=Disabled +XIAO_ESP32S3_PLUS.menu.JTAGAdapter.default.build.copy_jtag_files=0 +XIAO_ESP32S3_PLUS.menu.JTAGAdapter.builtin=Integrated USB JTAG +XIAO_ESP32S3_PLUS.menu.JTAGAdapter.builtin.build.openocdscript=esp32s3-builtin.cfg +XIAO_ESP32S3_PLUS.menu.JTAGAdapter.builtin.build.copy_jtag_files=1 +XIAO_ESP32S3_PLUS.menu.JTAGAdapter.external=FTDI Adapter +XIAO_ESP32S3_PLUS.menu.JTAGAdapter.external.build.openocdscript=esp32s3-ftdi.cfg +XIAO_ESP32S3_PLUS.menu.JTAGAdapter.external.build.copy_jtag_files=1 +XIAO_ESP32S3_PLUS.menu.JTAGAdapter.bridge=ESP USB Bridge +XIAO_ESP32S3_PLUS.menu.JTAGAdapter.bridge.build.openocdscript=esp32s3-bridge.cfg +XIAO_ESP32S3_PLUS.menu.JTAGAdapter.bridge.build.copy_jtag_files=1 + +XIAO_ESP32S3_PLUS.menu.PSRAM.disabled=Disabled +XIAO_ESP32S3_PLUS.menu.PSRAM.disabled.build.defines= +XIAO_ESP32S3_PLUS.menu.PSRAM.disabled.build.psram_type=qspi +XIAO_ESP32S3_PLUS.menu.PSRAM.opi=OPI PSRAM +XIAO_ESP32S3_PLUS.menu.PSRAM.opi.build.defines=-DBOARD_HAS_PSRAM +XIAO_ESP32S3_PLUS.menu.PSRAM.opi.build.psram_type=opi + +XIAO_ESP32S3_PLUS.menu.FlashMode.qio=QIO 80MHz +XIAO_ESP32S3_PLUS.menu.FlashMode.qio.build.flash_mode=dio +XIAO_ESP32S3_PLUS.menu.FlashMode.qio.build.boot=qio +XIAO_ESP32S3_PLUS.menu.FlashMode.qio.build.boot_freq=80m +XIAO_ESP32S3_PLUS.menu.FlashMode.qio.build.flash_freq=80m +XIAO_ESP32S3_PLUS.menu.FlashMode.dio=DIO 80MHz +XIAO_ESP32S3_PLUS.menu.FlashMode.dio.build.flash_mode=dio +XIAO_ESP32S3_PLUS.menu.FlashMode.dio.build.boot=dio +XIAO_ESP32S3_PLUS.menu.FlashMode.dio.build.boot_freq=80m +XIAO_ESP32S3_PLUS.menu.FlashMode.dio.build.flash_freq=80m + +XIAO_ESP32S3_PLUS.menu.FlashSize.8M=8MB (64Mb) +XIAO_ESP32S3_PLUS.menu.FlashSize.8M.build.flash_size=8MB + +XIAO_ESP32S3_PLUS.menu.LoopCore.1=Core 1 +XIAO_ESP32S3_PLUS.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1 +XIAO_ESP32S3_PLUS.menu.LoopCore.0=Core 0 +XIAO_ESP32S3_PLUS.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0 + +XIAO_ESP32S3_PLUS.menu.EventsCore.1=Core 1 +XIAO_ESP32S3_PLUS.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1 +XIAO_ESP32S3_PLUS.menu.EventsCore.0=Core 0 +XIAO_ESP32S3_PLUS.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0 + +XIAO_ESP32S3_PLUS.menu.USBMode.hwcdc=Hardware CDC and JTAG +XIAO_ESP32S3_PLUS.menu.USBMode.hwcdc.build.usb_mode=1 +XIAO_ESP32S3_PLUS.menu.USBMode.default=USB-OTG (TinyUSB) +XIAO_ESP32S3_PLUS.menu.USBMode.default.build.usb_mode=0 + +XIAO_ESP32S3_PLUS.menu.CDCOnBoot.default=Enabled +XIAO_ESP32S3_PLUS.menu.CDCOnBoot.default.build.cdc_on_boot=1 +XIAO_ESP32S3_PLUS.menu.CDCOnBoot.cdc=Disabled +XIAO_ESP32S3_PLUS.menu.CDCOnBoot.cdc.build.cdc_on_boot=0 + +XIAO_ESP32S3_PLUS.menu.MSCOnBoot.default=Disabled +XIAO_ESP32S3_PLUS.menu.MSCOnBoot.default.build.msc_on_boot=0 +XIAO_ESP32S3_PLUS.menu.MSCOnBoot.msc=Enabled (Requires USB-OTG Mode) +XIAO_ESP32S3_PLUS.menu.MSCOnBoot.msc.build.msc_on_boot=1 + +XIAO_ESP32S3_PLUS.menu.DFUOnBoot.default=Disabled +XIAO_ESP32S3_PLUS.menu.DFUOnBoot.default.build.dfu_on_boot=0 +XIAO_ESP32S3_PLUS.menu.DFUOnBoot.dfu=Enabled (Requires USB-OTG Mode) +XIAO_ESP32S3_PLUS.menu.DFUOnBoot.dfu.build.dfu_on_boot=1 + +XIAO_ESP32S3_PLUS.menu.UploadMode.default=UART0 / Hardware CDC +XIAO_ESP32S3_PLUS.menu.UploadMode.default.upload.use_1200bps_touch=false +XIAO_ESP32S3_PLUS.menu.UploadMode.default.upload.wait_for_upload_port=false +XIAO_ESP32S3_PLUS.menu.UploadMode.cdc=USB-OTG CDC (TinyUSB) +XIAO_ESP32S3_PLUS.menu.UploadMode.cdc.upload.use_1200bps_touch=true +XIAO_ESP32S3_PLUS.menu.UploadMode.cdc.upload.wait_for_upload_port=true + +XIAO_ESP32S3_PLUS.menu.PartitionScheme.default_8MB=Default with spiffs (3MB APP/1.5MB SPIFFS) +XIAO_ESP32S3_PLUS.menu.PartitionScheme.default_8MB.build.partitions=default_8MB +XIAO_ESP32S3_PLUS.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336 +XIAO_ESP32S3_PLUS.menu.PartitionScheme.max_app_8MB=Maximum APP (7.9MB APP No OTA/No FS) +XIAO_ESP32S3_PLUS.menu.PartitionScheme.max_app_8MB.build.partitions=max_app_8MB +XIAO_ESP32S3_PLUS.menu.PartitionScheme.max_app_8MB.upload.maximum_size=8257536 +XIAO_ESP32S3_PLUS.menu.PartitionScheme.tinyuf2=TinyUF2 8MB (2MB APP/3.7MB FFAT) +XIAO_ESP32S3_PLUS.menu.PartitionScheme.tinyuf2.build.custom_bootloader=bootloader-tinyuf2 +XIAO_ESP32S3_PLUS.menu.PartitionScheme.tinyuf2.build.custom_partitions=partitions-8MB-tinyuf2 +XIAO_ESP32S3_PLUS.menu.PartitionScheme.tinyuf2.upload.maximum_size=2097152 +XIAO_ESP32S3_PLUS.menu.PartitionScheme.tinyuf2.upload.extra_flags=0x410000 "{runtime.platform.path}/variants/{build.variant}/tinyuf2.bin" + +XIAO_ESP32S3_PLUS.menu.CPUFreq.240=240MHz (WiFi) +XIAO_ESP32S3_PLUS.menu.CPUFreq.240.build.f_cpu=240000000L +XIAO_ESP32S3_PLUS.menu.CPUFreq.160=160MHz (WiFi) +XIAO_ESP32S3_PLUS.menu.CPUFreq.160.build.f_cpu=160000000L +XIAO_ESP32S3_PLUS.menu.CPUFreq.80=80MHz (WiFi) +XIAO_ESP32S3_PLUS.menu.CPUFreq.80.build.f_cpu=80000000L +XIAO_ESP32S3_PLUS.menu.CPUFreq.40=40MHz +XIAO_ESP32S3_PLUS.menu.CPUFreq.40.build.f_cpu=40000000L +XIAO_ESP32S3_PLUS.menu.CPUFreq.20=20MHz +XIAO_ESP32S3_PLUS.menu.CPUFreq.20.build.f_cpu=20000000L +XIAO_ESP32S3_PLUS.menu.CPUFreq.10=10MHz +XIAO_ESP32S3_PLUS.menu.CPUFreq.10.build.f_cpu=10000000L + +XIAO_ESP32S3_PLUS.menu.UploadSpeed.921600=921600 +XIAO_ESP32S3_PLUS.menu.UploadSpeed.921600.upload.speed=921600 +XIAO_ESP32S3_PLUS.menu.UploadSpeed.115200=115200 +XIAO_ESP32S3_PLUS.menu.UploadSpeed.115200.upload.speed=115200 +XIAO_ESP32S3_PLUS.menu.UploadSpeed.256000.windows=256000 +XIAO_ESP32S3_PLUS.menu.UploadSpeed.256000.upload.speed=256000 +XIAO_ESP32S3_PLUS.menu.UploadSpeed.230400.windows.upload.speed=256000 +XIAO_ESP32S3_PLUS.menu.UploadSpeed.230400=230400 +XIAO_ESP32S3_PLUS.menu.UploadSpeed.230400.upload.speed=230400 +XIAO_ESP32S3_PLUS.menu.UploadSpeed.460800.linux=460800 +XIAO_ESP32S3_PLUS.menu.UploadSpeed.460800.macosx=460800 +XIAO_ESP32S3_PLUS.menu.UploadSpeed.460800.upload.speed=460800 +XIAO_ESP32S3_PLUS.menu.UploadSpeed.512000.windows=512000 +XIAO_ESP32S3_PLUS.menu.UploadSpeed.512000.upload.speed=512000 + +XIAO_ESP32S3_PLUS.menu.DebugLevel.none=None +XIAO_ESP32S3_PLUS.menu.DebugLevel.none.build.code_debug=0 +XIAO_ESP32S3_PLUS.menu.DebugLevel.error=Error +XIAO_ESP32S3_PLUS.menu.DebugLevel.error.build.code_debug=1 +XIAO_ESP32S3_PLUS.menu.DebugLevel.warn=Warn +XIAO_ESP32S3_PLUS.menu.DebugLevel.warn.build.code_debug=2 +XIAO_ESP32S3_PLUS.menu.DebugLevel.info=Info +XIAO_ESP32S3_PLUS.menu.DebugLevel.info.build.code_debug=3 +XIAO_ESP32S3_PLUS.menu.DebugLevel.debug=Debug +XIAO_ESP32S3_PLUS.menu.DebugLevel.debug.build.code_debug=4 +XIAO_ESP32S3_PLUS.menu.DebugLevel.verbose=Verbose +XIAO_ESP32S3_PLUS.menu.DebugLevel.verbose.build.code_debug=5 + +XIAO_ESP32S3_PLUS.menu.EraseFlash.none=Disabled +XIAO_ESP32S3_PLUS.menu.EraseFlash.none.upload.erase_cmd= +XIAO_ESP32S3_PLUS.menu.EraseFlash.all=Enabled +XIAO_ESP32S3_PLUS.menu.EraseFlash.all.upload.erase_cmd=-e + +############################################################## + connaxio_espoir.name=Connaxio's Espoir connaxio_espoir.vid.0=0x10C4 connaxio_espoir.pid.0=0x8D9A diff --git a/variants/XIAO_ESP32S3_Plus/bootloader-tinyuf2.bin b/variants/XIAO_ESP32S3_Plus/bootloader-tinyuf2.bin new file mode 100644 index 00000000000..b11e5b236f0 Binary files /dev/null and b/variants/XIAO_ESP32S3_Plus/bootloader-tinyuf2.bin differ diff --git a/variants/XIAO_ESP32S3_Plus/partitions-8MB.csv b/variants/XIAO_ESP32S3_Plus/partitions-8MB.csv new file mode 100644 index 00000000000..4026378b6fb --- /dev/null +++ b/variants/XIAO_ESP32S3_Plus/partitions-8MB.csv @@ -0,0 +1,10 @@ +# ESP-IDF Partition Table +# Name, Type, SubType, Offset, Size, Flags +# bootloader.bin,, 0x1000, 32K +# partition table,, 0x8000, 4K +nvs, data, nvs, 0x9000, 20K, +otadata, data, ota, 0xe000, 8K, +ota_0, 0, ota_0, 0x10000, 2048K, +ota_1, 0, ota_1, 0x210000, 2048K, +uf2, app, factory,0x410000, 256K, +ffat, data, fat, 0x450000, 3776K, diff --git a/variants/XIAO_ESP32S3_Plus/pins_arduino.h b/variants/XIAO_ESP32S3_Plus/pins_arduino.h new file mode 100644 index 00000000000..89acd5b2a64 --- /dev/null +++ b/variants/XIAO_ESP32S3_Plus/pins_arduino.h @@ -0,0 +1,90 @@ +#ifndef Pins_Arduino_h +#define Pins_Arduino_h + +#include + +#define USB_VID 0x2886 +#define USB_PID 0x0056 + +static const uint8_t LED_BUILTIN = 21; +#define BUILTIN_LED LED_BUILTIN // backward compatibility +#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN + +static const uint8_t TX = 43; +static const uint8_t RX = 44; + +static const uint8_t TX1 = 42; +static const uint8_t RX1 = 41; + +static const uint8_t SDA = 5; +static const uint8_t SCL = 6; + +static const uint8_t SS = 44; +static const uint8_t MOSI = 9; +static const uint8_t MISO = 8; +static const uint8_t SCK = 7; + +static const uint8_t MOSI1 = 11; +static const uint8_t MISO1 = 12; +static const uint8_t SCK1 = 13; + +static const uint8_t I2S_SCK = 39; +static const uint8_t I2S_SD = 38; +static const uint8_t I2S_WS = 40; + +static const uint8_t MTCK = 39; +static const uint8_t MTDO = 40; +static const uint8_t MTDI = 41; +static const uint8_t MTMS = 42; + +static const uint8_t DVP_Y8 = 11; +static const uint8_t DVP_YP = 12; +static const uint8_t DVP_PCLK = 13; +static const uint8_t DVP_VSYNC = 38; +static const uint8_t CAM_SCL = 39; +static const uint8_t CAM_SDA = 40; +static const uint8_t XMCLK = 10; + +static const uint8_t A0 = 1; +static const uint8_t A1 = 2; +static const uint8_t A2 = 3; +static const uint8_t A3 = 4; +static const uint8_t A4 = 5; +static const uint8_t A5 = 6; +static const uint8_t A8 = 7; +static const uint8_t A9 = 8; +static const uint8_t A10 = 9; +static const uint8_t ADC_BAT = 10; + +static const uint8_t D0 = 1; +static const uint8_t D1 = 2; +static const uint8_t D2 = 3; +static const uint8_t D3 = 4; +static const uint8_t D4 = 5; +static const uint8_t D5 = 6; +static const uint8_t D6 = 43; +static const uint8_t D7 = 44; +static const uint8_t D8 = 7; +static const uint8_t D9 = 8; +static const uint8_t D10 = 9; +static const uint8_t D11 = 38; +static const uint8_t D12 = 39; +static const uint8_t D13 = 40; +static const uint8_t D14 = 41; +static const uint8_t D15 = 42; +static const uint8_t D16 = 10; +static const uint8_t D17 = 13; +static const uint8_t D18 = 12; +static const uint8_t D19 = 11; + +static const uint8_t T1 = 1; +static const uint8_t T2 = 2; +static const uint8_t T3 = 3; +static const uint8_t T4 = 4; +static const uint8_t T5 = 5; +static const uint8_t T6 = 6; +static const uint8_t T7 = 7; +static const uint8_t T8 = 8; +static const uint8_t T9 = 9; + +#endif /* Pins_Arduino_h */ diff --git a/variants/XIAO_ESP32S3_Plus/tinyuf2.bin b/variants/XIAO_ESP32S3_Plus/tinyuf2.bin new file mode 100644 index 00000000000..86d981f8019 Binary files /dev/null and b/variants/XIAO_ESP32S3_Plus/tinyuf2.bin differ