When I try to download the sketch ESP32-S2 Mini to the disk, the download is not successful but ends with an error message:
"WARNING: ESP32-S2FNR2 (revision v1.0) chip was placed into download mode using GPIO0. To suppress this note, set --after option to 'no_reset'.
Failed uploading: uploading error: exit status 1
esptool.py can not exit the download mode over USB. To run the app, reset the chip manually."
When I try to load the bin version using esptool it says that "--after no_reset" is an "unknown argument".
This is how it goes:
Sketch uses 825946 bytes (63%) of program storage space. Maximum is 1310720 bytes.
Global variables use 41088 bytes (12%) of dynamic memory, leaving 286592 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM19
Connecting...
Chip is ESP32-S2FNR2 (revision v1.0)
Features: WiFi, Embedded Flash 4MB, Embedded PSRAM 2MB, ADC and temperature sensor calibration in BLK2 of efuse V2
Crystal is 40MHz
MAC: 80:65:99:ea:ae:28
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00004fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x000d9fff...
Compressed 14848 bytes to 10310...
….
Writing at 0x000d716e... (98 %)
Writing at 0x000d7da5... (99 %)
Writing at 0x000d87db... (99 %)
Writing at 0x000d92aa... (100 %)
Wrote 826304 bytes (529799 compressed) at 0x00010000 in 6.4 seconds (effective 1036.6 kbit/s)...
Hash of data verified.
Leaving...
WARNING: ESP32-S2FNR2 (revision v1.0) chip was placed into download mode using GPIO0.
esptool.py can not exit the download mode over USB. To run the app, reset the chip manually.
To suppress this note, set --after option to 'no_reset'.
Failed uploading: uploading error: exit status 1
Does anyone have experience with something similar and how can the situation be resolved? Am I doing something wrong? Arduino IDE is 2.3.2 and I use Windows 10 PC.