Skip to content

Commit 2299de5

Browse files
committed
Initial SPI support and S3-Box variant
1 parent b75a08c commit 2299de5

File tree

6 files changed

+302
-68
lines changed

6 files changed

+302
-68
lines changed

boards.txt

+104
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,110 @@ pico32.menu.DebugLevel.verbose.build.code_debug=5
844844

845845
##############################################################
846846

847+
esp32s3box.name=ESP32-S3-Box
848+
esp32s3box.vid.0=0x303a
849+
esp32s3box.pid.0=0x1001
850+
851+
esp32s3box.upload.tool=esptool_py
852+
esp32s3box.upload.maximum_size=1310720
853+
esp32s3box.upload.maximum_data_size=327680
854+
esp32s3box.upload.speed=921600
855+
esp32s3box.upload.flags=
856+
esp32s3box.upload.extra_flags=
857+
esp32s3box.upload.use_1200bps_touch=false
858+
esp32s3box.upload.wait_for_upload_port=false
859+
860+
esp32s3box.serial.disableDTR=false
861+
esp32s3box.serial.disableRTS=false
862+
863+
esp32s3box.build.tarch=xtensa
864+
esp32s3box.build.bootloader_addr=0x0
865+
esp32s3box.build.target=esp32s3
866+
esp32s3box.build.mcu=esp32s3
867+
esp32s3box.build.core=esp32
868+
esp32s3box.build.variant=esp32s3box
869+
esp32s3box.build.board=ESP32_S3_BOX
870+
871+
esp32s3box.build.usb_mode=1
872+
esp32s3box.build.cdc_on_boot=1
873+
esp32s3box.build.msc_on_boot=0
874+
esp32s3box.build.dfu_on_boot=0
875+
esp32s3box.build.f_cpu=240000000L
876+
esp32s3box.build.flash_size=16MB
877+
esp32s3box.build.flash_freq=80m
878+
esp32s3box.build.flash_mode=dio
879+
esp32s3box.build.boot=qio
880+
esp32s3box.build.partitions=default
881+
esp32s3box.build.defines=-DBOARD_HAS_PSRAM
882+
esp32s3box.build.loop_core=-DARDUINO_RUNNING_CORE=1
883+
esp32s3box.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
884+
885+
esp32s3box.menu.USBMode.hwcdc=Hardware CDC and JTAG
886+
esp32s3box.menu.USBMode.hwcdc.build.usb_mode=1
887+
esp32s3box.menu.USBMode.hwcdc.upload.use_1200bps_touch=false
888+
esp32s3box.menu.USBMode.hwcdc.upload.wait_for_upload_port=false
889+
esp32s3box.menu.USBMode.default=USB-OTG
890+
esp32s3box.menu.USBMode.default.build.usb_mode=0
891+
esp32s3box.menu.USBMode.default.upload.use_1200bps_touch=true
892+
esp32s3box.menu.USBMode.default.upload.wait_for_upload_port=true
893+
894+
esp32s3box.menu.MSCOnBoot.default=Disabled
895+
esp32s3box.menu.MSCOnBoot.default.build.msc_on_boot=0
896+
esp32s3box.menu.MSCOnBoot.msc=Enabled (Requires USB-OTG Mode)
897+
esp32s3box.menu.MSCOnBoot.msc.build.msc_on_boot=1
898+
899+
esp32s3box.menu.DFUOnBoot.default=Disabled
900+
esp32s3box.menu.DFUOnBoot.default.build.dfu_on_boot=0
901+
esp32s3box.menu.DFUOnBoot.dfu=Enabled (Requires USB-OTG Mode)
902+
esp32s3box.menu.DFUOnBoot.dfu.build.dfu_on_boot=1
903+
904+
esp32s3box.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
905+
esp32s3box.menu.PartitionScheme.default.build.partitions=default
906+
esp32s3box.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
907+
esp32s3box.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
908+
esp32s3box.menu.PartitionScheme.default_8MB=8M Flash (3MB APP/1.5MB FAT)
909+
esp32s3box.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
910+
esp32s3box.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
911+
esp32s3box.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
912+
esp32s3box.menu.PartitionScheme.no_ota.build.partitions=no_ota
913+
esp32s3box.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
914+
esp32s3box.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
915+
esp32s3box.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
916+
esp32s3box.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
917+
esp32s3box.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
918+
esp32s3box.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
919+
esp32s3box.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
920+
esp32s3box.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
921+
esp32s3box.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
922+
esp32s3box.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
923+
esp32s3box.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
924+
esp32s3box.menu.PartitionScheme.huge_app.build.partitions=huge_app
925+
esp32s3box.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
926+
esp32s3box.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
927+
esp32s3box.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
928+
esp32s3box.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
929+
esp32s3box.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FAT)
930+
esp32s3box.menu.PartitionScheme.fatflash.build.partitions=ffat
931+
esp32s3box.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
932+
esp32s3box.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9MB FATFS)
933+
esp32s3box.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
934+
esp32s3box.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
935+
936+
esp32s3box.menu.DebugLevel.none=None
937+
esp32s3box.menu.DebugLevel.none.build.code_debug=0
938+
esp32s3box.menu.DebugLevel.error=Error
939+
esp32s3box.menu.DebugLevel.error.build.code_debug=1
940+
esp32s3box.menu.DebugLevel.warn=Warn
941+
esp32s3box.menu.DebugLevel.warn.build.code_debug=2
942+
esp32s3box.menu.DebugLevel.info=Info
943+
esp32s3box.menu.DebugLevel.info.build.code_debug=3
944+
esp32s3box.menu.DebugLevel.debug=Debug
945+
esp32s3box.menu.DebugLevel.debug.build.code_debug=4
946+
esp32s3box.menu.DebugLevel.verbose=Verbose
947+
esp32s3box.menu.DebugLevel.verbose.build.code_debug=5
948+
949+
##############################################################
950+
847951
esp32s2usb.name=ESP32S2 Native USB
848952
esp32s2usb.vid.0=0x303a
849953
esp32s2usb.pid.0=0x0003

cores/esp32/esp32-hal-cpu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ bool removeApbChangeCallback(void * arg, apb_change_cb_t cb){
147147
}
148148

149149
static uint32_t calculateApb(rtc_cpu_freq_config_t * conf){
150-
#if CONFIG_IDF_TARGET_ESP32C3
150+
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3
151151
return APB_CLK_FREQ;
152152
#else
153153
if(conf->freq_mhz >= 80){

0 commit comments

Comments
 (0)