Error with uploading any sketch TinyS3 ESP32-S33

Uploaded simple (any) sketch to TinyS3 (Arduino IDE 2.3.2).

void setup() 
{  
  // Open serial port

  Serial.begin(9600);
  while (!Serial);
  delay(3000);
  Serial.println("Hello, sailor!");

}

void loop() 
{
  Serial.println("Pass...");
  delay(1000);
}

Get the following error:

E (1867) mmap: esp_mmu_unmap(595): munmap target pointer is outside external memory regions

assert failed: spi_flash_munmap flash_mmap.c:241 (0 && "invalid handle, or handle already unmapped")

Backtrace: 0x40376fc2:0x3fcf3cd0 0x4037bd75:0x3fcf3cf0 0x403819d1:0x3fcf3d10 0x42008d47:0x3fcf3e40 0x4200887d:0x3fcf3e60 0x42008981:0x3fcf3e80 0x42008c1b:0x3fcf3eb0 0x42002bc0:0x3fcf3f10 0x42003fe5:0x3fcf3f40 0x4202720d:0x3fcf3f70 0x4037e91a:0x3fcf3fb0

I get this on any sketch. Used to work. Have reinstalled board manager for ESP32. Also fails on Adafruit Huzzah32. Both boards worked at first so something has gone haywire?

Arduino Nano ESP32 (which is a different board manager I think) works fine.

Any ideas?

Wayne in NH

Ran into something similar - potentially board library revisions >3.0.0 (ESP32 by Espressif Systems) has an issue that causes ESP32-S3 boards to freak out. My ESP32-S2 boards do not seem impacted thankfully.

My fix was going into Tools > Board > Board Manager and then downgrading the esp32 by Espressif library to 2.0.17 which seemed to fix the issue. Not sure exactly what broke the -S3 board file in the latest updates though I have seen some rumors.

Hopefully that helps!

Edit: seems we're not the only folks seeing this issue - something very similar (if not the same is being reported on Persistent Boot Failure on ESP32-S3 (IDFGH-13089) · Issue #14035 · espressif/esp-idf · GitHub)

The boot media on my host system died. The replacement media arrived yesterday and I have rebuilt built my development environment. (that is the long way of stating everything is a fresh install as of 12 hours ago).
Same issue as OP. I was eventually successful by downgrading to ESP32 board manager v3.0.1

reference:
host: Raspberry Pi 5
OS: Bookworm
Arduino IDE version: 1.8.19
Board Manager URL: https://espressif.github.io/arduino-esp32/package_esp32_index.json
Board manager version: ESP32 3.0.1
Target device: UM TinyS3 (using recommended config)

sample sketch (only 2 lines):

void setup() {}
void loop() {}

Yes! I backed off to 2.0.17 of ESP board support and it's working again. I think the latest ESP board manager had a poison pill or two. Now I'll go back to investigating why my Timer Interrupt in another project went wonky.

Thanks so much!

Regards,

Wayne in NH