I try to flash an ESP-01S. For that I use a Keyestudio USB to ESP-01S which is equiped with a CH340G.
When I execute
pio run --target upload
Configuring upload protocol... AVAILABLE: espota, esptool CURRENT: upload_protocol = esptool Looking for upload port... Auto-detected: /dev/ttyUSB0 Uploading .pio/build/esp01/firmware.bin esptool.py v3.0 Serial port /dev/ttyUSB0 Connecting........_____....._____....._____....._____....._____....._____....._____ A fatal error occurred: Failed to connect to ESP8266: Timed out waiting for packet header *** [upload] Error 2
My platformio.ini contains
[env:esp01] platform = espressif8266 board = esp01_1m framework = arduino
I am using Linux (Debian) and I have been successful in flashing other boards (seeed_xiao_esp32c3)
I am grateful for any suggestions.