Just a moment ago, I was able to reproduce the issue reported by heikkiw in an Ubuntu environment.(Although the active board is different, the phenomenon is the same.)
Removing -t nobuild allows the upload to complete successfully.
Although the version of esptool I am using differs from the one in heikkiw’s environment, the result remained the same regardless of whether pioarduino or espressif32 was used as the platform.
It appears that -t nobuild does not function as expected in a Linux environment.
source code is…
#include <Arduino.h>
void setup() {}
void loop() {}
CASE-1 with -t nobuild
platformio.ini:
[env:adafruit_feather_esp32s3_reversetft]
platform = https://github.com/pioarduino/platform- espressif32/releases/download/stable/platform-espressif32.zip
board = adafruit_feather_esp32s3_reversetft
framework = arduino
pio run:
masashi@masashi-Ubuntu:/run/media/masashi/WD20EZRX/ESP32-VSCODE/ESP32-S3/S3-TEST$ pio run -e adafruit_feather_esp32s3_reversetft -t upload -t nobuild
Processing adafruit_feather_esp32s3_reversetft (platform: https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip; board: adafruit_feather_esp32s3_reversetft; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-builtin, esp-prog, esp-prog-2, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Warning! Your `/etc/udev/rules.d/99-platformio-udev.rules` are outdated. Please update or reinstall them.
More details: https://docs.platformio.org/en/latest/core/installation/udev-rules.html
Auto-detected: /dev/ttyACM0
Forcing reset using 1200bps open/close on port /dev/ttyACM0
Waiting for the new upload port...
Uploading .pio/build/adafruit_feather_esp32s3_reversetft/firmware.bin
Usage: esptool write-flash [OPTIONS] <address> <filename>...
Try 'esptool write-flash -h' for help
╭─ Error ────────esptool v5.3.0
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Invalid value for '<address> <filename>...': Must be pairs of an address and the binary filename to write there. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
*** [upload] Error 2
============================================================================ [FAILED] Took 9.70 seconds ============================================================================
CASE-2 without -t nobuild
platformio.ini: same as CASE-1
pio run:
masashi@masashi-Ubuntu:/run/media/masashi/WD20EZRX/ESP32-VSCODE/ESP32-S3/S3-TEST$ pio run -e adafruit_feather_esp32s3_reversetft -t upload
Processing adafruit_feather_esp32s3_reversetft (platform: https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip; board: adafruit_feather_esp32s3_reversetft; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/adafruit_feather_esp32s3_reversetft.html
PLATFORM: Espressif 32 (55.3.311) > Adafruit Feather ESP32-S3 Reverse TFT
HARDWARE: ESP32S3 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, esp-prog-2, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- contrib-piohome @ 3.4.4
- framework-arduinoespressif32 @ 3.3.11
- framework-arduinoespressif32-libs @ 5.5.5+sha.b774170ff46
- tool-esptoolpy @ 5.3.0
- tool-xtensa-esp-elf-gdb @ 17.1.0+20260402
- toolchain-xtensa-esp-elf @ 14.2.0+20260121
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 44 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Retrieving maximum program size .pio/build/adafruit_feather_esp32s3_reversetft/firmware.elf
Checking size .pio/build/adafruit_feather_esp32s3_reversetft/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [== ] 16.7% (used 54600 bytes from 327680 bytes)
Flash: [=== ] 25.1% (used 362492 bytes from 1441792 bytes)
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-builtin, esp-prog, esp-prog-2, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Warning! Your `/etc/udev/rules.d/99-platformio-udev.rules` are outdated. Please update or reinstall them.
More details: https://docs.platformio.org/en/latest/core/installation/udev-rules.html
Auto-detected: /dev/ttyACM0
Forcing reset using 1200bps open/close on port /dev/ttyACM0
Waiting for the new upload port...
Uploading .pio/build/adafruit_feather_esp32s3_reversetft/firmware.bin
esptool v5.3.0
Connected to ESP32-S3 on /dev/ttyACM0:
Chip type: ESP32-S3 (QFN56) (revision v0.2)
Features: Wi-Fi, BT 5 (LE), Dual Core + LP Core, 240MHz, Embedded PSRAM 8MB (AP_3v3)
Crystal frequency: 40MHz
MAC: 84:fc:e6:6d:8a:04
Stub flasher running.
Changing baud rate to 460800...
Changed.
Configuring flash size...
Auto-detected flash size: 16MB
Writing '/run/media/masashi/WD20EZRX/ESP32-VSCODE/ESP32-S3/S3-TEST/.pio/build/adafruit_feather_esp32s3_reversetft/bootloader.bin' at 0x00000000...
Flash parameters set to 0x024f.
SHA digest in image updated.
Flash will be erased from 0x00000000 to 0x00004fff...
Compressed 19968 bytes to 12995...
Wrote 19968 bytes (12995 compressed) at 0x00000000 in 0.5 seconds (311.7 kbit/s).
Hash of data verified.
Writing '/run/media/masashi/WD20EZRX/ESP32-VSCODE/ESP32-S3/S3-TEST/.pio/build/adafruit_feather_esp32s3_reversetft/partitions.bin' at 0x00008000...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 3072 bytes to 136...
Wrote 3072 bytes (136 compressed) at 0x00008000 in 0.0 seconds (757.4 kbit/s).
Hash of data verified.
Writing '/home/masashi/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin' at 0x0000e000...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (953.0 kbit/s).
Hash of data verified.
Writing '/home/masashi/.platformio/packages/framework-arduinoespressif32/variants/adafruit_feather_esp32s3_reversetft/tinyuf2.bin' at 0x002d0000...
Flash will be erased from 0x002d0000 to 0x00307fff...
Compressed 228352 bytes to 140881...
Wrote 228352 bytes (140881 compressed) at 0x002d0000 in 3.5 seconds (527.3 kbit/s).
Hash of data verified.
Writing '.pio/build/adafruit_feather_esp32s3_reversetft/firmware.bin' at 0x00010000...
Flash will be erased from 0x00010000 to 0x00069fff...
Compressed 367472 bytes to 216012...
Wrote 367472 bytes (216012 compressed) at 0x00010000 in 5.3 seconds (557.9 kbit/s).
Hash of data verified.
Hard resetting via RTS pin...
=========================================================================== [SUCCESS] Took 22.97 seconds ==========================================================================