Error

n 0x8000 partition-table.bin
esptool.py v4.6.2
Serial port /dev/ttyACM0
Connecting......................................

A fatal error occurred: Failed to connect to ESP32-S2: No serial data received.

Description

/dev/ttyACM0 was opened for communication but did not receive data from the WIFI Devboard. Possible reason might be communication parameters baudrate and RTS/DTR.

Possible solution

Following instructions https://docs.flipper.net/development/hardware/wifi-developer-board/update

When entering the command for flashing the ESP32, change your communication speed to 115200 (never tried higher, might work). Make sure you identified virtual serial port, /dev/ttyACM0 in my Arch Linux example.

esptool.py -p /dev/ttyACM0 -b 115200 --before default_reset --after hard_reset --chip esp32s2 write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 bootloader.bin 0x10000 blackmagic.bi
n 0x8000 partition-table.bin

 

Upgrading through the GPIO UART Bridge instead instead of directly to the Dev board.

5V on GPIO: off

 Enter USB-UART Bridge

GPIO->USB-UART Bridge->Config

In config menu, set following parameters and run the command again.
USB Channel: 0(CLI)
Baudrate: 115200
UART Pins: 13,14
RTS/DTR Pins: 6,7
 
Output of flashing command
n 0x8000 partition-table.bin
esptool.py v4.6.2
Serial port /dev/ttyACM0
Connecting....
Chip is ESP32-S2 (revision v0.0)
Features: WiFi, No Embedded Flash, No Embedded PSRAM, ADC and temperature sensor calibration in BLK2 of efuse V2
Crystal is 40MHz
MAC: --------
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00004fff...
Flash will be erased from 0x00010000 to 0x000ecfff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 13248 bytes to 9298...
Wrote 13248 bytes (9298 compressed) at 0x00001000 in 1.1 seconds (effective 95.1 kbit/s)...
Hash of data verified.
Compressed 904288 bytes to 562550...
Wrote 904288 bytes (562550 compressed) at 0x00010000 in 51.2 seconds (effective 141.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 124...
Wrote 3072 bytes (124 compressed) at 0x00008000 in 0.1 seconds (effective 281.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...