My arduino nano esp32 doesn't boot

Hi.

I just got my Arduino nano esp32 (s3) and i wanted to use the SPI. However, I only realized that the Pins 8, 9, 10 (which are bootstrap pins) being used by SPI would brick my s3 by going into a boot reset loop. So I put the s3 into firmware mode and uploaded the old firmware (before i added SPI) via esptool and now I am really f*cked.

I used this command:

python -m esptool --chip esp32s3 --port COM9 --baud 115200 write-flash -z 0x0 firmware.bin

Now, the s3 JTAG only shows up briefly in my device manager and i hear the usb disconnecting sound every 3 seconds or so.

I then made a UART bridge with a wroom-32:

#include <Arduino.h>

void setup() {
    Serial.begin(115200);
    Serial1.begin(115200, SERIAL_8N1, 16, 17);
}

void loop() {
    if (Serial.available()) Serial1.write(Serial.read());
    if (Serial1.available()) Serial.write(Serial1.read());
}

and i get this message repeated over the uart:

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40378aa1
SPIWP:0xee
mode:DIO, clock div:1
load:0x3c030020,len:0xd720
load:0x3fc91a40,len:0x28d0
load:0x42000020,len:0x29038
load:0x3fc94310,len:0xdb0
load:0x40374000,len:0xda40
SHA-256 comparison failed:
Calculated: dd17fa2b742e558d04097f30b7f6c95309ec45f65a074f104faf4eeb8795aca3
Expected: fd0b0d360266ff9d2aea5d36f9d94dbb91c552e0f650f2e44c739ca9f7765b19
Attempting to boot anyway...
entry 0x40376920

Please somebody who maybe knows how to fix this help me.

Thanks

Just use the recovery pin of the Arduino Nano ESP32 to boot it into bootloader mode and then upload a new firmware? This prevents it from running your firmware.

https://support.arduino.cc/hc/en-us/articles/9810414060188-Reset-the-Arduino-bootloader-on-the-Nano-ESP32

Thank you so much!

I really need to start to google things again instead of asking gpt.