I am trying to figure out this error.
StopIteration
[6848] Failed to execute script 'esptool' due to unhandled exception!
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: 7c:df:a1:ec:d1:f0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Failed uploading: uploading error: exit status 1
I have used ESP32-S3 Wroom-1 module.
I have compared pinout of all Wroom modules ESP32 ESP32-S3 as well as ES32-WROVER have all the programming pins in exactly same positions so I was expecting this programmer to work for any of these modules. I am looking at GND, 3v3, EN, RX, TX, GPIO0.
Looks like it failed while configuring flash memory, I have gone through esptool's codebase on Github it seems to fail at this function esptool/loader.py at master · espressif/esptool · GitHub I am not experienced with all this so can't figure out what is the issue. On board config, I have set
Flash mode: QIO 80MHz
Flash size: 8MB
I have selected ESP32S3 Dev Module as the board ESP32 Library v2.0.6
Am I wrong in assuming all these modules can be programmed with this programmer?
Thanks in advance
UPDATE:
Changing upload speed from 921600 to 115200 fixed it, but the module still errored when running it. Serial monitor shows following:
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbec
load:0x403cc700,len:0x2920
entry 0x403c98d8
[ 81][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): XTAL: 40 / 1 = 40 Mhz, APB: 80000000 Hz
E (491) psram: PSRAM ID read error: 0x00ffffff
[ 83][W][esp32-hal-psram.c:71] psramInit(): PSRAM init failed!
[ 120][D][esp32-hal-rmt.c:615] rmtInit(): -- TX RMT - CH 0 - 1 RAM Blocks - pin 48
Which went away after I disabled PSRAM in upload setting. Now I seem to be able to program and run it but the serial monitor is only showing debug messages, the message I am trying to print to serial is not showing up.
Also tried blinking IO1 did not work.



