I used @clydebarrow 's example config and added my on stuff:
substitutions:
device_name: wt32-sc01-plus
friendly_name: WT32-SC01 Plus
device_ip: 192.168.11.196
esphome:
name: ${device_name}
friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: esphome.w32-sc01-plus
version: "1.1"
platformio_options:
build_unflags: -Werror=all
board_build.flash_mode: dio
esp32:
board: esp32-s3-devkitc-1
framework:
type: esp-idf
sdkconfig_options:
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240: y
CONFIG_ESP32S3_DATA_CACHE_64KB: y
CONFIG_SPIRAM_FETCH_INSTRUCTIONS: y
CONFIG_SPIRAM_RODATA: y
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret encryption_key
ota:
- platform: esphome
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: ${device_ip}
gateway: 192.168.11.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: '${device_name}_Fallback_Hotspot'
password: !secret wifi_password
captive_portal:
web_server:
port: 80
auth:
username: admin
password: !secret webserver_password
external_components:
- source: github://pr#6537
components: [i80, io_bus, ili9xxx, spi]
refresh: 1d
- source: github://pr#7453
components: [lvgl]
refresh: 1h
power_supply:
- id: backlight
enable_on_boot: true
pin:
ignore_strapping_warning: true
number: GPIO45
i80:
dc_pin:
ignore_strapping_warning: true
number: 0
data_pins:
- 9
- ignore_strapping_warning: true
number: 46
- ignore_strapping_warning: true
number: 3
- 8
- 18
- 17
- 16
- 15
wr_pin: 47
i2c:
sda: 6
scl: 5
touchscreen:
- platform: ft63x6
id: my_touchscreen
interrupt_pin: 7
transform:
swap_xy: true
mirror_x: true
psram:
speed: 80MHz
font:
- file: "fonts/ComicSansMS3.ttf"
id: my_font
size: 12
display:
- platform: ili9xxx
bus_type: i80
id: w32_disp
model: st7796
dimensions:
height: 320
width: 480
transform:
mirror_y: false
mirror_x: false
swap_xy: true
reset_pin: 4
data_rate: 4MHz
color_order: bgr
invert_colors: true
auto_clear_enabled: false
update_interval: never
lvgl:
theme:
label:
text_font: my_font # set all your labels to use your custom defined font
button:
bg_color: 0x2F8CD8
bg_grad_color: 0x005782
bg_grad_dir: VER
bg_opa: COVER
border_color: 0x0077b3
border_width: 1
text_color: 0xFFFFFF
pressed: # set some button colors to be different in pressed state
bg_color: 0x006699
bg_grad_color: 0x00334d
checked: # set some button colors to be different in checked state
bg_color: 0x1d5f96
bg_grad_color: 0x03324A
text_color: 0xfff300
buttonmatrix:
bg_opa: TRANSP
border_color: 0x0077b3
border_width: 0
text_color: 0xFFFFFF
pad_all: 0
items: # set all your buttonmatrix buttons to use your custom defined styles and font
bg_color: 0x2F8CD8
bg_grad_color: 0x005782
bg_grad_dir: VER
bg_opa: COVER
border_color: 0x0077b3
border_width: 1
text_color: 0xFFFFFF
text_font: my_font
pressed:
bg_color: 0x006699
bg_grad_color: 0x00334d
checked:
bg_color: 0x1d5f96
bg_grad_color: 0x03324A
text_color: 0x005580
switch:
bg_color: 0xC0C0C0
bg_grad_color: 0xb0b0b0
bg_grad_dir: VER
bg_opa: COVER
checked:
bg_color: 0x1d5f96
bg_grad_color: 0x03324A
bg_grad_dir: VER
bg_opa: COVER
knob:
bg_color: 0xFFFFFF
bg_grad_color: 0xC0C0C0
bg_grad_dir: VER
bg_opa: COVER
slider:
border_width: 1
border_opa: 15%
bg_color: 0xcccaca
bg_opa: 15%
indicator:
bg_color: 0x1d5f96
bg_grad_color: 0x03324A
bg_grad_dir: VER
bg_opa: COVER
knob:
bg_color: 0x2F8CD8
bg_grad_color: 0x005782
bg_grad_dir: VER
bg_opa: COVER
border_color: 0x0077b3
border_width: 1
text_color: 0xFFFFFF
style_definitions:
- id: header_footer
bg_color: 0x2F8CD8
bg_grad_color: 0x005782
bg_grad_dir: VER
bg_opa: COVER
border_opa: TRANSP
radius: 0
pad_all: 0
pad_row: 0
pad_column: 0
border_color: 0x0077b3
text_color: 0xFFFFFF
width: 100%
height: 30
Building a new firmware file went without errors:
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
- framework-espidf @ 3.40407.240606 (4.4.7)
- tool-cmake @ 3.16.9
- tool-ninja @ 1.10.2
- toolchain-esp32ulp @ 2.35.0-20220830
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
- toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
Reading CMake configuration...
Generating assembly for certificate bundle...
Dependency Graph
|-- noise-c @ 0.1.6
|-- ArduinoJson @ 6.18.5
|-- lvgl @ 8.4.0
Compiling .pioenvs/wt32-sc01-plus/..........
< left out hunderds of lines >
Linking .pioenvs/wt32-sc01-plus/firmware.elf
RAM: [= ] 10.0% (used 32852 bytes from 327680 bytes)
Flash: [===== ] 54.1% (used 993601 bytes from 1835008 bytes)
Building .pioenvs/wt32-sc01-plus/firmware.bin
Creating esp32s3 image...
Successfully created esp32s3 image.
esp32_create_combined_bin([".pioenvs/wt32-sc01-plus/firmware.bin"], [".pioenvs/wt32-sc01-plus/firmware.elf"])
Wrote 0x102ab0 bytes to file /data/build/wt32-sc01-plus/.pioenvs/wt32-sc01-plus/firmware.factory.bin, ready to flash to offset 0x0
esp32_copy_ota_bin([".pioenvs/wt32-sc01-plus/firmware.bin"], [".pioenvs/wt32-sc01-plus/firmware.elf"])
======================== [SUCCESS] Took 474.38 seconds ========================
INFO Successfully compiled program.
I flashed my wt32-sc01 plus with esptool.py without errors (but one warning!), using the recommanded settings (crystal frequency: 40Mhz, flash size 32MB, DIO for SPI MODE, burning address: 0X00):
./esptool.py --port /dev/ttyACM0 write_flash --flash_mode dio --flash_size 32MB 0x0 '/home/tedsluis/Downloads/wt32-sc01-plus.factory.bin'
esptool.py v4.7.0
Serial port /dev/ttyACM0
Connecting....
Detecting chip type... ESP32-S3
Chip is ESP32-S3 (QFN56) (revision v0.2)
Features: WiFi, BLE, Embedded PSRAM 2MB (AP_3v3)
Crystal is 40MHz
MAC: 3c:84:27:15:99:b4
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
WARNING: Set --flash_size 32MB is larger than the available flash size of 16MB.
Flash will be erased from 0x00000000 to 0x00102fff...
Flash params set to 0x025f
SHA digest in image updated
Compressed 1059504 bytes to 673994...
Wrote 1059504 bytes (673994 compressed) at 0x00000000 in 59.3 seconds (effective 143.0 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Why did I got this warning?
Set --flash_size 32MB is larger than the available flash size of 16MB.
It was recommanded in the wt32-sc01 plus documentation to use this option.
Powering up the wt32-sc01 plus after flashing didn’t do anything.
In can see in the log file that esp32-s3 keeps booting over and over again:
[20:07:03]ESP-ROM:esp32s3-20210327
[20:07:03]Build:Mar 27 2021
[20:07:03]rst:0x1 (POWERON),boot:0xa (SPI_FAST_FLASH_BOOT)
[20:07:03]SPIWP:0xee
[20:07:03]mode:DIO, clock div:1
[20:07:03]load:0x3fce3808,len:0x16c4
[20:07:03]load:0x403c9700,len:0xbc0
[20:07:03]load:0x403cc700,len:0x2e90
[20:07:03]entry 0x403c9950
[20:07:03]I (24) boot: ESP-IDF 4.4.7 2nd stage bootloader
[20:07:03]I (24) boot: compile time 17:53:16
[20:07:03]I (25) boot: Multicore bootloader
[20:07:03]I (26) boot: chip revision: v0.2
[20:07:03]I (30) boot.esp32s3: Boot SPI Speed : 80MHz
[20:07:03]I (35) boot.esp32s3: SPI Mode : DIO
[20:07:03]I (40) boot.esp32s3: SPI Flash Size : 32MB
[20:07:03]I (45) boot: Enabling RNG early entropy source...
[20:07:03]I (50) boot: Partition Table:
[20:07:03]I (54) boot: ## Label Usage Type ST Offset Length
[20:07:03]I (61) boot: 0 otadata OTA data 01 00 00009000 00002000
[20:07:03]I (68) boot: 1 phy_init RF data 01 01 0000b000 00001000
[20:07:03]I (76) boot: 2 app0 OTA app 00 10 00010000 001c0000
[20:07:03]I (83) boot: 3 app1 OTA app 00 11 001d0000 001c0000
[20:07:03]I (91) boot: 4 nvs WiFi data 01 02 00390000 0006d000
[20:07:03]I (98) boot: End of partition table
[20:07:03]I (103) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=31360h (201568) map
[20:07:03]I (147) esp_image: segment 1: paddr=00041388 vaddr=3fc96700 size=03d64h ( 15716) load
[20:07:03]I (151) esp_image: segment 2: paddr=000450f4 vaddr=40374000 size=0af24h ( 44836) load
[20:07:03]I (163) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=ab28ch (701068) map
[20:07:03]I (289) esp_image: segment 4: paddr=000fb2b4 vaddr=4037ef24 size=077d0h ( 30672) load
[20:07:03]I (303) boot: Loaded app from partition at offset 0x10000
[20:07:03]I (303) boot: Disabling RNG early entropy source...
[20:07:03]I (304) cpu_start: Multicore app
[20:07:03]I (308) spiram: Found 16MBit SPI RAM device
[20:07:03]I (312) spiram: SPI RAM mode: sram 80m
[20:07:03]I (317) spiram: PSRAM initialized, cache is in normal (1-core) mode.
[20:07:03]I (324) cpu_start: Pro cpu up.
[20:07:03]I (327) cpu_start: Starting app cpu, entry point is 0x403762d8
[20:07:04]ESP-ROM:esp32s3-20210327
[20:07:04]Build:Mar 27 2021
[20:07:04]rst:0xc (RTC_SW_CPU_RST),boot:0xa (SPI_FAST_FLASH_BOOT)
[20:07:04]Saved PC:0x40376940
[20:07:04]SPIWP:0xee
[20:07:04]mode:DIO, clock div:1
[20:07:04]load:0x3fce3808,len:0x16c4
[20:07:04]load:0x403c9700,len:0xbc0
[20:07:04]load:0x403cc700,len:0x2e90
[20:07:04]entry 0x403c9950
[20:07:04]I (29) boot: ESP-IDF 4.4.7 2nd stage bootloader
[20:07:04]I (29) boot: compile time 17:53:16
[20:07:04]I (29) boot: Multicore bootloader
[20:07:04]I (31) boot: chip revision: v0.2
[20:07:04]I (35) boot.esp32s3: Boot SPI Speed : 80MHz
[20:07:04]I (40) boot.esp32s3: SPI Mode : DIO
[20:07:04]I (44) boot.esp32s3: SPI Flash Size : 32MB
[20:07:04]I (49) boot: Enabling RNG early entropy source...
[20:07:04]I (55) boot: Partition Table:
[20:07:04]I (58) boot: ## Label Usage Type ST Offset Length
[20:07:04]I (65) boot: 0 otadata OTA data 01 00 00009000 00002000
[20:07:04]I (73) boot: 1 phy_init RF data 01 01 0000b000 00001000
[20:07:04]I (80) boot: 2 app0 OTA app 00 10 00010000 001c0000
[20:07:04]I (88) boot: 3 app1 OTA app 00 11 001d0000 001c0000
[20:07:04]I (95) boot: 4 nvs WiFi data 01 02 00390000 0006d000
[20:07:04]I (103) boot: End of partition table
[20:07:04]I (107) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=31360h (201568) map
[20:07:04]I (152) esp_image: segment 1: paddr=00041388 vaddr=3fc96700 size=03d64h ( 15716) load
[20:07:04]I (155) esp_image: segment 2: paddr=000450f4 vaddr=40374000 size=0af24h ( 44836) load
[20:07:04]I (167) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=ab28ch (701068) map
[20:07:04]I (293) esp_image: segment 4: paddr=000fb2b4 vaddr=4037ef24 size=077d0h ( 30672) load
[20:07:04]I (308) boot: Loaded app from partition at offset 0x10000
[20:07:04]I (308) boot: Disabling RNG early entropy source...
[20:07:04]I (308) cpu_start: Multicore app
[20:07:04]I (312) spiram: Found 16MBit SPI RAM device
[20:07:04]I (317) spiram: SPI RAM mode: sram 80m
[20:07:04]I (321) spiram: PSRAM initialized, cache is in normal (1-core) mode.
[20:07:04]I (328) cpu_start: Pro cpu up.
[20:07:04]I (332) cpu_start: Starting app cpu, entry point is 0x403762d8
[20:07:05]ESP-ROM:esp32s3-20210327
[20:07:05]Build:Mar 27 2021
[20:07:05]rst:0xc (RTC_SW_CPU_RST),boot:0xa (SPI_FAST_FLASH_BOOT)
[20:07:05]Saved PC:0x40376940
[20:07:05]SPIWP:0xee
[20:07:05]mode:DIO, clock div:1
[20:07:05]load:0x3fce3808,len:0x16c4
[20:07:05]load:0x403c9700,len:0xbc0
[20:07:05]load:0x403cc700,len:0x2e90
[20:07:05]entry 0x403c9950
[20:07:05]I (29) boot: ESP-IDF 4.4.7 2nd stage bootloader
[20:07:05]I (29) boot: compile time 17:53:16
[20:07:05]I (29) boot: Multicore bootloader
[20:07:05]I (31) boot: chip revision: v0.2
[20:07:05]I (35) boot.esp32s3: Boot SPI Speed : 80MHz
[20:07:05]I (40) boot.esp32s3: SPI Mode : DIO
[20:07:05]I (44) boot.esp32s3: SPI Flash Size : 32MB
[20:07:05]I (49) boot: Enabling RNG early entropy source...
[20:07:05]I (55) boot: Partition Table:
[20:07:05]I (58) boot: ## Label Usage Type ST Offset Length
[20:07:05]I (65) boot: 0 otadata OTA data 01 00 00009000 00002000
[20:07:05]I (73) boot: 1 phy_init RF data 01 01 0000b000 00001000
[20:07:05]I (80) boot: 2 app0 OTA app 00 10 00010000 001c0000
[20:07:05]I (88) boot: 3 app1 OTA app 00 11 001d0000 001c0000
[20:07:05]I (95) boot: 4 nvs WiFi data 01 02 00390000 0006d000
[20:07:05]I (103) boot: End of partition table
[20:07:05]I (107) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=31360h (201568) map
[20:07:05]I (152) esp_image: segment 1: paddr=00041388 vaddr=3fc96700 size=03d64h ( 15716) load
[20:07:05]I (155) esp_image: segment 2: paddr=000450f4 vaddr=40374000 size=0af24h ( 44836) load
[20:07:05]I (167) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=ab28ch (701068) map
[20:07:05]I (293) esp_image: segment 4: paddr=000fb2b4 vaddr=4037ef24 size=077d0h ( 30672) load
[20:07:05]I (308) boot: Loaded app from partition at offset 0x10000
[20:07:05]I (308) boot: Disabling RNG early entropy source...
[20:07:05]I (308) cpu_start: Multicore app
[20:07:05]I (312) spiram: Found 16MBit SPI RAM device
[20:07:05]I (317) spiram: SPI RAM mode: sram 80m
[20:07:05]I (321) spiram: PSRAM initialized, cache is in normal (1-core) mode.
[20:07:05]I (328) cpu_start: Pro cpu up.
[20:07:05]I (332) cpu_start: Starting app cpu, entry point is 0x403762d8
[20:07:05]ESP-ROM:esp32s3-20210327
[20:07:05]Build:Mar 27 2021
[20:07:05]rst:0xc (RTC_SW_CPU_RST),boot:0xa (SPI_FAST_FLASH_BOOT)
[20:07:05]Saved PC:0x40376940
[20:07:05]SPIWP:0xee
[20:07:05]mode:DIO, clock div:1
[20:07:05]load:0x3fce3808,len:0x16c4
[20:07:06]load:0x403c9700,len:0xbc0
[20:07:06]load:0x403cc700,len:0x2e90
[20:07:06]entry 0x403c9950
[20:07:06]I (29) boot: ESP-IDF 4.4.7 2nd stage bootloader
[20:07:06]I (29) boot: compile time 17:53:16
[20:07:06]I (29) boot: Multicore bootloader
[20:07:06]I (31) boot: chip revision: v0.2
[20:07:06]I (35) boot.esp32s3: Boot SPI Speed : 80MHz
[20:07:06]I (40) boot.esp32s3: SPI Mode : DIO
[20:07:06]I (44) boot.esp32s3: SPI Flash Size : 32MB
[20:07:06]I (49) boot: Enabling RNG early entropy source...
[20:07:06]I (55) boot: Partition Table:
[20:07:06]I (58) boot: ## Label Usage Type ST Offset Length
[20:07:06]I (65) boot: 0 otadata OTA data 01 00 00009000 00002000
[20:07:06]I (73) boot: 1 phy_init RF data 01 01 0000b000 00001000
[20:07:06]I (80) boot: 2 app0 OTA app 00 10 00010000 001c0000
[20:07:06]I (88) boot: 3 app1 OTA app 00 11 001d0000 001c0000
[20:07:06]I (95) boot: 4 nvs WiFi data 01 02 00390000 0006d000
[20:07:06]I (103) boot: End of partition table
[20:07:06]I (107) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=31360h (201568) map
[20:07:06]I (152) esp_image: segment 1: paddr=00041388 vaddr=3fc96700 size=03d64h ( 15716) load
[20:07:06]I (155) esp_image: segment 2: paddr=000450f4 vaddr=40374000 size=0af24h ( 44836) load
[20:07:06]I (167) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=ab28ch (701068) map
[20:07:06]I (293) esp_image: segment 4: paddr=000fb2b4 vaddr=4037ef24 size=077d0h ( 30672) load
[20:07:06]I (308) boot: Loaded app from partition at offset 0x10000
[20:07:06]I (308) boot: Disabling RNG early entropy source...
[20:07:06]I (308) cpu_start: Multicore app
[20:07:06]I (312) spiram: Found 16MBit SPI RAM device
[20:07:06]I (317) spiram: SPI RAM mode: sram 80m
[20:07:06]I (321) spiram: PSRAM initialized, cache is in normal (1-core) mode.
[20:07:06]I (328) cpu_start: Pro cpu up.
[20:07:06]I (332) cpu_start: Starting app cpu, entry point is 0x403762d8
[20:07:06]ESP-ROM:esp32s3-20210327
[20:07:06]Build:Mar 27 2021
[20:07:06]rst:0xc (RTC_SW_CPU_RST),boot:0xa (SPI_FAST_FLASH_BOOT)
[20:07:06]Saved PC:0x40376940
[20:07:06]SPIWP:0xee
[20:07:06]mode:DIO, clock div:1
[20:07:06]load:0x3fce3808,len:0x16c4
[20:07:06]load:0x403c9700,len:0xbc0
[20:07:06]load:0x403cc700,len:0x2e90
[20:07:06]entry 0x403c9950
[20:07:06]I (29) boot: ESP-IDF 4.4.7 2nd stage bootloader
[20:07:06]I (29) boot: compile time 17:53:16
[20:07:06]I (29) boot: Multicore bootloader
[20:07:06]I (31) boot: chip revision: v0.2
[20:07:06]I (35) boot.esp32s3: Boot SPI Speed : 80MHz
[20:07:06]I (40) boot.esp32s3: SPI Mode : DIO
[20:07:06]I (44) boot.esp32s3: SPI Flash Size : 32MB
[20:07:06]I (49) boot: Enabling RNG early entropy source...
[20:07:06]I (55) boot: Partition Table:
[20:07:06]I (58) boot: ## Label Usage Type ST Offset Length
[20:07:06]I (65) boot: 0 otadata OTA data 01 00 00009000 00002000
[20:07:06]I (73) boot: 1 phy_init RF data 01 01 0000b000 00001000
[20:07:06]I (80) boot: 2 app0 OTA app 00 10 00010000 001c0000
[20:07:06]I (88) boot: 3 app1 OTA app 00 11 001d0000 001c0000
[20:07:06]I (95) boot: 4 nvs WiFi data 01 02 00390000 0006d000
[20:07:06]I (103) boot: End of partition table
[20:07:06]I (107) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=31360h (201568) map
[20:07:06]I (152) esp_image: segment 1: paddr=00041388 vaddr=3fc96700 size=03d64h ( 15716) load
[20:07:06]I (155) esp_image: segment 2: paddr=000450f4 vaddr=40374000 size=0af24h ( 44836) load
[20:07:06]I (167) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=ab28ch (701068) map
[20:07:07]I (293) esp_image: segment 4: paddr=000fb2b4 vaddr=4037ef24 size=077d0h ( 30672) load
[20:07:07]I (308) boot: Loaded app from partition at offset 0x10000
[20:07:07]I (308) boot: Disabling RNG early entropy source...
[20:07:07]I (308) cpu_start: Multicore app
[20:07:07]I (312) spiram: Found 16MBit SPI RAM device
[20:07:07]I (317) spiram: SPI RAM mode: sram 80m
[20:07:07]I (321) spiram: PSRAM initialized, cache is in normal (1-core) mode.
[20:07:07]I (328) cpu_start: Pro cpu up.
[20:07:07]I (332) cpu_start: Starting app cpu, entry point is 0x403762d8
[20:07:07]ESP-ROM:esp32s3-20210327
[20:07:07]Build:Mar 27 2021
[20:07:07]rst:0xc (RTC_SW_CPU_RST),boot:0xa (SPI_FAST_FLASH_BOOT)
[20:07:07]Saved PC:0x40376940
Does anyone have an idea why the esp32-s3 keeps boot looping and how I can fix this?