Skip to content

feather esp32-s3 hardware definition and bootloader #6450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
183 changes: 183 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6778,6 +6778,189 @@ adafruit_feather_esp32_v2.menu.DebugLevel.verbose=Verbose
adafruit_feather_esp32_v2.menu.DebugLevel.verbose.build.code_debug=5


##############################################################

adafruit_feather_esp32s3.name=Adafruit Feather ESP32-S3 No PSRAM
adafruit_feather_esp32s3.vid.0=0x239A
adafruit_feather_esp32s3.pid.0=0x8113
adafruit_feather_esp32s3.vid.1=0x239A
adafruit_feather_esp32s3.pid.1=0x0113
adafruit_feather_esp32s3.vid.1=0x239A
adafruit_feather_esp32s3.pid.1=0x8114

adafruit_feather_esp32s3.upload.tool=esptool_py
adafruit_feather_esp32s3.upload.maximum_size=1310720
adafruit_feather_esp32s3.upload.maximum_data_size=327680
adafruit_feather_esp32s3.upload.flags=
adafruit_feather_esp32s3.upload.extra_flags=0x410000 "{runtime.platform.path}/variants/{build.variant}/tinyuf2.bin"
adafruit_feather_esp32s3.upload.use_1200bps_touch=true
adafruit_feather_esp32s3.upload.wait_for_upload_port=true

adafruit_feather_esp32s3.serial.disableDTR=false
adafruit_feather_esp32s3.serial.disableRTS=false

adafruit_feather_esp32s3.build.tarch=xtensa
adafruit_feather_esp32s3.build.bootloader_addr=0x0
adafruit_feather_esp32s3.build.target=esp32s3
adafruit_feather_esp32s3.build.mcu=esp32s3
adafruit_feather_esp32s3.build.core=esp32
adafruit_feather_esp32s3.build.variant=adafruit_feather_esp32s3_nopsram
adafruit_feather_esp32s3.build.board=ADAFRUIT_FEATHER_ESP32S3_NOPSRAM

adafruit_feather_esp32s3.build.usb_mode=1
adafruit_feather_esp32s3.build.cdc_on_boot=1
adafruit_feather_esp32s3.build.msc_on_boot=0
adafruit_feather_esp32s3.build.dfu_on_boot=0
adafruit_feather_esp32s3.build.f_cpu=240000000L
adafruit_feather_esp32s3.build.flash_size=8MB
adafruit_feather_esp32s3.build.flash_freq=80m
adafruit_feather_esp32s3.build.flash_mode=dio
adafruit_feather_esp32s3.build.boot=qio
adafruit_feather_esp32s3.build.partitions=default
adafruit_feather_esp32s3.build.defines=
adafruit_feather_esp32s3.build.loop_core=-DARDUINO_RUNNING_CORE=1
adafruit_feather_esp32s3.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1

adafruit_feather_esp32s3.menu.USBMode.default=USB-OTG
adafruit_feather_esp32s3.menu.USBMode.default.build.usb_mode=0
adafruit_feather_esp32s3.menu.USBMode.default.upload.use_1200bps_touch=true
adafruit_feather_esp32s3.menu.USBMode.default.upload.wait_for_upload_port=true
adafruit_feather_esp32s3.menu.USBMode.hwcdc=Hardware CDC and JTAG
adafruit_feather_esp32s3.menu.USBMode.hwcdc.build.usb_mode=1
adafruit_feather_esp32s3.menu.USBMode.hwcdc.upload.use_1200bps_touch=false
adafruit_feather_esp32s3.menu.USBMode.hwcdc.upload.wait_for_upload_port=false

adafruit_feather_esp32s3.menu.CDCOnBoot.cdc=Enabled
adafruit_feather_esp32s3.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
adafruit_feather_esp32s3.menu.CDCOnBoot.default=Disabled
adafruit_feather_esp32s3.menu.CDCOnBoot.default.build.cdc_on_boot=0

adafruit_feather_esp32s3.menu.MSCOnBoot.default=Disabled
adafruit_feather_esp32s3.menu.MSCOnBoot.default.build.msc_on_boot=0
adafruit_feather_esp32s3.menu.MSCOnBoot.msc=Enabled
adafruit_feather_esp32s3.menu.MSCOnBoot.msc.build.msc_on_boot=1

adafruit_feather_esp32s3.menu.DFUOnBoot.default=Disabled
adafruit_feather_esp32s3.menu.DFUOnBoot.default.build.dfu_on_boot=0
adafruit_feather_esp32s3.menu.DFUOnBoot.dfu=Enabled
adafruit_feather_esp32s3.menu.DFUOnBoot.dfu.build.dfu_on_boot=1

adafruit_feather_esp32s3.menu.UploadMode.cdc=Internal USB
adafruit_feather_esp32s3.menu.UploadMode.cdc.upload.use_1200bps_touch=true
adafruit_feather_esp32s3.menu.UploadMode.cdc.upload.wait_for_upload_port=true
adafruit_feather_esp32s3.menu.UploadMode.default=UART0
adafruit_feather_esp32s3.menu.UploadMode.default.upload.use_1200bps_touch=false
adafruit_feather_esp32s3.menu.UploadMode.default.upload.wait_for_upload_port=false

adafruit_feather_esp32s3.menu.PSRAM.disabled=Disabled
adafruit_feather_esp32s3.menu.PSRAM.disabled.build.defines=
adafruit_feather_esp32s3.menu.PSRAM.enabled=Enabled
adafruit_feather_esp32s3.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM

adafruit_feather_esp32s3.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
adafruit_feather_esp32s3.menu.PartitionScheme.default.build.partitions=default
adafruit_feather_esp32s3.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
adafruit_feather_esp32s3.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
adafruit_feather_esp32s3.menu.PartitionScheme.default_8MB=8M Flash (3MB APP/1.5MB FAT)
adafruit_feather_esp32s3.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
adafruit_feather_esp32s3.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
adafruit_feather_esp32s3.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
adafruit_feather_esp32s3.menu.PartitionScheme.minimal.build.partitions=minimal
adafruit_feather_esp32s3.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
adafruit_feather_esp32s3.menu.PartitionScheme.no_ota.build.partitions=no_ota
adafruit_feather_esp32s3.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
adafruit_feather_esp32s3.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
adafruit_feather_esp32s3.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
adafruit_feather_esp32s3.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
adafruit_feather_esp32s3.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
adafruit_feather_esp32s3.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
adafruit_feather_esp32s3.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
adafruit_feather_esp32s3.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
adafruit_feather_esp32s3.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
adafruit_feather_esp32s3.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
adafruit_feather_esp32s3.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
adafruit_feather_esp32s3.menu.PartitionScheme.huge_app.build.partitions=huge_app
adafruit_feather_esp32s3.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
adafruit_feather_esp32s3.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
adafruit_feather_esp32s3.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
adafruit_feather_esp32s3.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
adafruit_feather_esp32s3.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FAT)
adafruit_feather_esp32s3.menu.PartitionScheme.fatflash.build.partitions=ffat
adafruit_feather_esp32s3.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
adafruit_feather_esp32s3.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9MB FATFS)
adafruit_feather_esp32s3.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
adafruit_feather_esp32s3.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728

adafruit_feather_esp32s3.menu.CPUFreq.240=240MHz (WiFi)
adafruit_feather_esp32s3.menu.CPUFreq.240.build.f_cpu=240000000L
adafruit_feather_esp32s3.menu.CPUFreq.160=160MHz (WiFi)
adafruit_feather_esp32s3.menu.CPUFreq.160.build.f_cpu=160000000L
adafruit_feather_esp32s3.menu.CPUFreq.80=80MHz (WiFi)
adafruit_feather_esp32s3.menu.CPUFreq.80.build.f_cpu=80000000L
adafruit_feather_esp32s3.menu.CPUFreq.40=40MHz
adafruit_feather_esp32s3.menu.CPUFreq.40.build.f_cpu=40000000L
adafruit_feather_esp32s3.menu.CPUFreq.20=20MHz
adafruit_feather_esp32s3.menu.CPUFreq.20.build.f_cpu=20000000L
adafruit_feather_esp32s3.menu.CPUFreq.10=10MHz
adafruit_feather_esp32s3.menu.CPUFreq.10.build.f_cpu=10000000L

adafruit_feather_esp32s3.menu.FlashMode.qio=QIO
adafruit_feather_esp32s3.menu.FlashMode.qio.build.flash_mode=dio
adafruit_feather_esp32s3.menu.FlashMode.qio.build.boot=qio
adafruit_feather_esp32s3.menu.FlashMode.dio=DIO
adafruit_feather_esp32s3.menu.FlashMode.dio.build.flash_mode=dio
adafruit_feather_esp32s3.menu.FlashMode.dio.build.boot=dio
adafruit_feather_esp32s3.menu.FlashMode.qout=QOUT
adafruit_feather_esp32s3.menu.FlashMode.qout.build.flash_mode=dout
adafruit_feather_esp32s3.menu.FlashMode.qout.build.boot=qout
adafruit_feather_esp32s3.menu.FlashMode.dout=DOUT
adafruit_feather_esp32s3.menu.FlashMode.dout.build.flash_mode=dout
adafruit_feather_esp32s3.menu.FlashMode.dout.build.boot=dout

adafruit_feather_esp32s3.menu.FlashFreq.80=80MHz
adafruit_feather_esp32s3.menu.FlashFreq.80.build.flash_freq=80m
adafruit_feather_esp32s3.menu.FlashFreq.40=40MHz
adafruit_feather_esp32s3.menu.FlashFreq.40.build.flash_freq=40m

adafruit_feather_esp32s3.menu.FlashSize.8M=8MB (64Mb)
adafruit_feather_esp32s3.menu.FlashSize.8M.build.flash_size=8MB
adafruit_feather_esp32s3.menu.FlashSize.8M.build.partitions=default_8MB
adafruit_feather_esp32s3.menu.FlashSize.4M=4MB (32Mb)
adafruit_feather_esp32s3.menu.FlashSize.4M.build.flash_size=4MB
adafruit_feather_esp32s3.menu.FlashSize.2M=2MB (16Mb)
adafruit_feather_esp32s3.menu.FlashSize.2M.build.flash_size=2MB
adafruit_feather_esp32s3.menu.FlashSize.2M.build.partitions=minimal
adafruit_feather_esp32s3.menu.FlashSize.16M=16MB (128Mb)
adafruit_feather_esp32s3.menu.FlashSize.16M.build.flash_size=16MB

adafruit_feather_esp32s3.menu.UploadSpeed.921600=921600
adafruit_feather_esp32s3.menu.UploadSpeed.921600.upload.speed=921600
adafruit_feather_esp32s3.menu.UploadSpeed.115200=115200
adafruit_feather_esp32s3.menu.UploadSpeed.115200.upload.speed=115200
adafruit_feather_esp32s3.menu.UploadSpeed.256000.windows=256000
adafruit_feather_esp32s3.menu.UploadSpeed.256000.upload.speed=256000
adafruit_feather_esp32s3.menu.UploadSpeed.230400.windows.upload.speed=256000
adafruit_feather_esp32s3.menu.UploadSpeed.230400=230400
adafruit_feather_esp32s3.menu.UploadSpeed.230400.upload.speed=230400
adafruit_feather_esp32s3.menu.UploadSpeed.460800.linux=460800
adafruit_feather_esp32s3.menu.UploadSpeed.460800.macosx=460800
adafruit_feather_esp32s3.menu.UploadSpeed.460800.upload.speed=460800
adafruit_feather_esp32s3.menu.UploadSpeed.512000.windows=512000
adafruit_feather_esp32s3.menu.UploadSpeed.512000.upload.speed=512000

adafruit_feather_esp32s3.menu.DebugLevel.none=None
adafruit_feather_esp32s3.menu.DebugLevel.none.build.code_debug=0
adafruit_feather_esp32s3.menu.DebugLevel.error=Error
adafruit_feather_esp32s3.menu.DebugLevel.error.build.code_debug=1
adafruit_feather_esp32s3.menu.DebugLevel.warn=Warn
adafruit_feather_esp32s3.menu.DebugLevel.warn.build.code_debug=2
adafruit_feather_esp32s3.menu.DebugLevel.info=Info
adafruit_feather_esp32s3.menu.DebugLevel.info.build.code_debug=3
adafruit_feather_esp32s3.menu.DebugLevel.debug=Debug
adafruit_feather_esp32s3.menu.DebugLevel.debug.build.code_debug=4
adafruit_feather_esp32s3.menu.DebugLevel.verbose=Verbose
adafruit_feather_esp32s3.menu.DebugLevel.verbose.build.code_debug=5


##############################################################

Expand Down
Binary file modified variants/adafruit_feather_esp32s2/bootloader.bin
Binary file not shown.
Binary file modified variants/adafruit_feather_esp32s2/tinyuf2.bin
Binary file not shown.
Binary file not shown.
10 changes: 10 additions & 0 deletions variants/adafruit_feather_esp32s3_nopsram/partitions.csv
Original file line number Diff line number Diff line change
@@ -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,
71 changes: 71 additions & 0 deletions variants/adafruit_feather_esp32s3_nopsram/pins_arduino.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#ifndef Pins_Arduino_h
#define Pins_Arduino_h

#include <stdint.h>

#define USB_VID 0x239A
#define USB_PID 0x8113
#define USB_MANUFACTURER "Adafruit"
#define USB_PRODUCT "Feather ESP32-S3 No PSRAM"
#define USB_SERIAL "" // Empty string for MAC adddress

#define EXTERNAL_NUM_INTERRUPTS 46
#define NUM_DIGITAL_PINS 48
#define NUM_ANALOG_INPUTS 20

#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
#define digitalPinHasPWM(p) (p < 46)

#define LED_BUILTIN 13

#define PIN_NEOPIXEL 33
#define NEOPIXEL_NUM 1 // number of neopixels
#define NEOPIXEL_POWER 21 // power pin
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
#define I2C_POWER 7 // I2C power pin
#define PIN_I2C_POWER 7 // I2C power pin


static const uint8_t TX = 39;
static const uint8_t RX = 38;
#define TX1 TX
#define RX1 RX

static const uint8_t SDA = 3;
static const uint8_t SCL = 4;

static const uint8_t SS = 42;
static const uint8_t MOSI = 35;
static const uint8_t SCK = 36;
static const uint8_t MISO = 37;

static const uint8_t A0 = 18;
static const uint8_t A1 = 17;
static const uint8_t A2 = 16;
static const uint8_t A3 = 15;
static const uint8_t A4 = 14;
static const uint8_t A5 = 8;
static const uint8_t A6 = 3;
static const uint8_t A7 = 4;
static const uint8_t A8 = 5;
static const uint8_t A9 = 6;
static const uint8_t A10 = 9;
static const uint8_t A11 = 10;
static const uint8_t A12 = 11;
static const uint8_t A13 = 12;
static const uint8_t A14 = 13;

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 T8 = 8;
static const uint8_t T9 = 9;
static const uint8_t T10 = 10;
static const uint8_t T11 = 11;
static const uint8_t T12 = 12;
static const uint8_t T13 = 13;
static const uint8_t T14 = 14;

#endif /* Pins_Arduino_h */
Binary file not shown.
43 changes: 43 additions & 0 deletions variants/adafruit_feather_esp32s3_nopsram/variant.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2021 Ha Thach (tinyusb.org) for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/


#include "esp32-hal-gpio.h"
#include "pins_arduino.h"

extern "C" {

// Initialize variant/board, called before setup()
void initVariant(void)
{
// This board has a power control pin, and we must set it to output and high
// in order to enable the NeoPixels.
pinMode(NEOPIXEL_POWER, OUTPUT);
digitalWrite(NEOPIXEL_POWER, HIGH);

// turn on the I2C power by setting LDO enable pin 'high'
pinMode(PIN_I2C_POWER, OUTPUT);
digitalWrite(PIN_I2C_POWER, HIGH);
}
}