Skip to content

Esp32 s3 support #60

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 2 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
104 changes: 104 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,110 @@ pico32.menu.DebugLevel.verbose.build.code_debug=5

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

esp32s3box.name=ESP32-S3-Box
esp32s3box.vid.0=0x303a
esp32s3box.pid.0=0x1001

esp32s3box.upload.tool=esptool_py
esp32s3box.upload.maximum_size=1310720
esp32s3box.upload.maximum_data_size=327680
esp32s3box.upload.speed=921600
esp32s3box.upload.flags=
esp32s3box.upload.extra_flags=
esp32s3box.upload.use_1200bps_touch=false
esp32s3box.upload.wait_for_upload_port=false

esp32s3box.serial.disableDTR=false
esp32s3box.serial.disableRTS=false

esp32s3box.build.tarch=xtensa
esp32s3box.build.bootloader_addr=0x0
esp32s3box.build.target=esp32s3
esp32s3box.build.mcu=esp32s3
esp32s3box.build.core=esp32
esp32s3box.build.variant=esp32s3box
esp32s3box.build.board=ESP32_S3_BOX

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

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

esp32s3box.menu.MSCOnBoot.default=Disabled
esp32s3box.menu.MSCOnBoot.default.build.msc_on_boot=0
esp32s3box.menu.MSCOnBoot.msc=Enabled (Requires USB-OTG Mode)
esp32s3box.menu.MSCOnBoot.msc.build.msc_on_boot=1

esp32s3box.menu.DFUOnBoot.default=Disabled
esp32s3box.menu.DFUOnBoot.default.build.dfu_on_boot=0
esp32s3box.menu.DFUOnBoot.dfu=Enabled (Requires USB-OTG Mode)
esp32s3box.menu.DFUOnBoot.dfu.build.dfu_on_boot=1

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

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

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

esp32s2usb.name=ESP32S2 Native USB
esp32s2usb.vid.0=0x303a
esp32s2usb.pid.0=0x0003
Expand Down
2 changes: 1 addition & 1 deletion cores/esp32/esp32-hal-cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ bool removeApbChangeCallback(void * arg, apb_change_cb_t cb){
}

static uint32_t calculateApb(rtc_cpu_freq_config_t * conf){
#if CONFIG_IDF_TARGET_ESP32C3
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3
return APB_CLK_FREQ;
#else
if(conf->freq_mhz >= 80){
Expand Down
Loading