Pio run -e esp32s3_reversetft -t nobuild -t upload not working

Hello, I know this question has been asked before, but I cannot get this working.

I want to separate project build and upload. So I follow AI instructions to add to file settings.json

Toolbar button with nobuild option

pio run -e esp32s3_reversetft -t nobuild -t upload

However clicking the button gives the error:

“Invalid value for ‘ …’: Must be pairs of an address and the binary filename to write there”. Is there a way to get it working ?

I would strongly suggest that “upload without build” should be added to future pio versions. There are numerous situations when build succeeds, but upload fails

Do you have a minimal project that reproduces the error message you’re getting?

Just go to pio terminal, build any project, connect your ESP32 , and type the command:

pio run -e -t nobuild -t upload

pio run -e your_env -t nobuild -t upload

Not reproducable.

platformio.ini

[env:esp32dev]
platform = espressif32@8.0.0
board = esp32dev
framework = arduino

src/main.cpp:

#include <Arduino.h>

void setup() {}

void loop() {}

pio run:

$ pio run 
Processing esp32dev (platform: espressif32@8.0.0; board: esp32dev; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (8.0.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 @ 4.30312.261016 (3.3.12) 
 - framework-arduinoespressif32-esp32-libs @ 3.3.12 
 - tool-esptool @ 2.50400.0 (5.4.0) 
 - tool-riscv32-esp-elf-gdb @ 12.1.0+20221002 
 - tool-xtensa-esp-elf-gdb @ 12.1.0+20221002 
 - toolchain-riscv32-esp @ 14.2.0+20260121 
 - 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
Compiling .pio/build/esp32dev/src/main.cpp.o
..
Archiving .pio/build/esp32dev/libFrameworkArduino.a
Indexing .pio/build/esp32dev/libFrameworkArduino.a
Linking .pio/build/esp32dev/firmware.elf
Retrieving maximum program size .pio/build/esp32dev/firmware.elf
Checking size .pio/build/esp32dev/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]   6.7% (used 22100 bytes from 327680 bytes)
Flash: [==        ]  20.5% (used 268912 bytes from 1310720 bytes)
Building .pio/build/esp32dev/firmware.bin
esptool v5.4.0
Creating ESP32 image...
Merged 3 ELF sections.
Successfully created ESP32 image.

pio run -e esp32dev -t nobuild -t upload:

$ pio run -e esp32dev -t nobuild -t upload
Processing esp32dev (platform: espressif32@8.0.0; board: esp32dev; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-prog, 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...
Auto-detected: /dev/ttyS0
Uploading .pio/build/esp32dev/firmware.bin
esptool v5.4.0
Serial port /dev/ttyS0:
...

Starts uploading fine, no “Invalid value for ‘…’: Must be pairs of an address and the binary filename to write there” error.

With what platformio.ini can I reproduce that error?

The nobuild target may not work as expected because PlatformIO’s upload process requires a previously built firmware image. Try using pio run -e esp32s3_reversetft -t upload after building separately. If you need to prevent rebuilding, check whether your environment supports an upload-only workflow using the existing .bin file.

I have setting in platform.ini (for 4Mb flash)

board_build.partitions = dualOTA.csv

and in dualOTA.csv

# Name,   Type, SubType, Offset,  Size, Flags

nvs,data,nvs,0x9000,0x5000,
otadata,data,ota,0xE000,0x2000,
ota_0,app,ota_0,0x10000,0x1F0000,

ota_1,app,ota_1,0x200000,0x1F0000,

Maybe this is causing the error ?

It is not possible to readily determine whether the CSV file you provided is correct or not. What led you to believe that the partition definition is incorrect?

The fragments you have provided so far are insufficient for anyone to offer a meaningful answer; there is simply not enough information to resolve the issue.

To help us investigate, we require at least the following:

  1. The complete platformio.ini file (required)
  2. The board model (required)
  3. A wiring/connection diagram for the entire system (to the extent possible)
  4. The source code (a minimal example that reproduces the error)
  5. The build log (required)

maxgerhardt provided items 1, 4, and 5, and stated that he was unable to reproduce the issue. (He assumed a generic ESP32 board, as specified in the platformio.ini file.)

Could you please provide similar, specific information and demonstrate that you are able to reproduce the issue?

I made new empty test project (empty setup and loop) in Platformio, dualOTA.csv is the same as previous.

platformio.ini

[env:adafruit_feather_esp32s3_reversetft]
platform = espressif32
;platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
board = adafruit_feather_esp32s3_reversetft
board_build.partitions = dualOTA.csv

then build the project

note: I had not the board connected to USB , but the error is there

heikki@hwlaptop:\~/ESP32/Test$ pio run -e adafruit_feather_esp32s3_reversetft -t nobuild -t upload
Processing adafruit_feather_esp32s3_reversetft (platform: espressif32; 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/ttyS0
Forcing reset using 1200bps open/close on port /dev/ttyS0
Waiting for the new upload port...
Uploading .pio/build/adafruit_feather_esp32s3_reversetft/firmware.bin
esptool v5.6.0

Usage: esptool write-flash \[OPTIONS\]  ...

Try 'esptool write-flash -h' for help
╭─ Error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Invalid value for ' ...':

Invalid value for ' ...': Must be pairs of an address and the binary filename to write there. 
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

\*\*\* \[upload\] Error 2
============================================== \[FAILED\] Took 12.36 seconds ==============================================

This expression is incomplete, it will take “whatever is the latest locally installed version”. Are you using PIOArduino (in which version, from the logs?) or the official espressif32 platform?

Even with your platformio.ini (platform = espressif32@8.0.0) that has your partition table it builds and uploads fine.

C:\Users\Max\temp\upload_test>pio run -t nobuild -t upload
Processing adafruit_feather_esp32s3_reversetft (platform: espressif32@8.0.0; 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, 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...
Auto-detected: COM3
Forcing reset using 1200bps open/close on port COM3
Waiting for the new upload port...
Uploading .pio\build\adafruit_feather_esp32s3_reversetft\firmware.bin
esptool v5.4.0
Serial port COM3:
Connecting....
Connected to ESP32-S3 on COM3:
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:                10:51:db:82:58:e0

Uploading stub flasher...
Running stub flasher...
Stub flasher running.
Changing baud rate to 460800...
Changed.

Configuring flash size...
Flash will be erased from 0x00010000 to 0x0006efff...
Compressed 388704 bytes to 223337...
Writing at 0x0001bcc2 ==                               7.3% 16.00kB/218.10kB [0s]
Writing at 0x00026356 ====                            14.7% 32.00kB/218.10kB [0s]
Writing at 0x0002bca6 ======>                         22.0% 48.00kB/218.10kB [1s]
Writing at 0x00031e54 ========>                       29.3% 64.00kB/218.10kB [1s]
Writing at 0x00039e39 ===========                     36.7% 80.00kB/218.10kB [1s]
Writing at 0x00040fe3 =============                   44.0% 96.00kB/218.10kB [2s]
Writing at 0x000465bb ===============                 51.4% 112.00kB/218.10kB [2s]
Writing at 0x0004c0ca =================>              58.7% 128.00kB/218.10kB [3s]
Writing at 0x000514a4 ===================>            66.0% 144.00kB/218.10kB [3s]
Writing at 0x000568f2 ======================          73.4% 160.00kB/218.10kB [3s]
Writing at 0x0005c418 ========================        80.7% 176.00kB/218.10kB [4s]
Writing at 0x00065682 ==========================      88.0% 192.00kB/218.10kB [4s]
Writing at 0x0006b20f ============================>   95.4% 208.00kB/218.10kB [5s]
Writing at 0x0006ee60 ============================== 100.0% 218.10kB/218.10kB [5s]
Wrote 388704 bytes (223337 compressed) at 0x00010000 in 5.5 seconds (565.2 kbit/s).
Verifying written data...
Hash of data verified.

Hard resetting via RTS pin...
============================================= [SUCCESS] Took 20.45 seconds =============================================

Please check the following:
1.In the current state where an upload error is occurring, is the file size of
(project)/.pio/build/adafruit_feather_esp32s3_reversetft/firmware.bin smaller than the size of the partition suspected to be the cause of the issue?
If it is not, that is very likely the direct cause of the problem.

  1. Does the process you described as “building with minimal code” include both compilation and linking?
    Looking at your logs, it appears that you are attempting to upload without having performed the compilation and linking steps, which is why it is failing.
    Could it be that the compilation and linking did not take place, leading to the mismatch with the partition size?
    Note that if the board is not connected in a state that allows for uploads, the upload process will always result in an error.
    However, in that case, the error would be a fatal “No such file or directory,” which differs from what is shown in your logs.

  2. After verifying points 1 and 2, could you try building the minimal code again and attempting the upload once more?

  3. Are you referring to the issue discussed in the following link?
    Update TinyUF2 Bootloader for CircuitPython 10 and Later | Adafruit ESP32-S3 Reverse TFT Feather | Adafruit Learning System
    If firmware.bin is too large, you will naturally need to modify the partition CSV file as well.

I study this More tomorrow. However I noticed that this error comes from esptool. You have Windows environment, esptool version 5.4.0, I have Linux, esptool 5.6.0! Unfortunately pio does not tell what parameters it sends To esptool.

What’s the verbose log for this?

pio run -e esp32s3_reversetft -t nobuild -t upload -v

Just posting that should give us enough info.

Here is the log, seems that pio (version 6.2.0) is not sending flash address at all.

esptool write-flash -h    shows that there must be address before filename.


## pio run -e adafruit_feather_esp32s3_reversetft -t nobuild -t upload -v
heikki@hwlaptop:\~/ESP32/Test$ pio run -e adafruit_feather_esp32s3_reversetft -t nobuild -t upload -v
Processing adafruit_feather_esp32s3_reversetft (platform: espressif32; board: adafruit_feather_esp32s3_reversetft; board_build.partitions: dualOTA.csv; framework: arduino)

(\["upload"\], \[".pio/build/adafruit_feather_esp32s3_reversetft/firmware.bin"\])
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
BeforeUpload(\["upload"\], \[".pio/build/adafruit_feather_esp32s3_reversetft/firmware.bin"\])

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...
/home/heikki/.platformio/penv/bin/esptool --chip esp32s3 --port "/dev/ttyACM1" --baud 460800 --before default-reset --after hard-reset write-flash -z --flash-mode dio --flash-freq 80m --flash-size detect .pio/build/adafruit_feather_esp32s3_reversetft/firmware.bin
esptool v5.6.0

Usage: esptool write-flash \[OPTIONS\]  ...

Try 'esptool write-flash -h' for help
Invalid value for ' ...': Must be pairs of an address and the binary filename to write there.

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 ==========================================================================

And you explicitly tested espressif32@8.0.0, and not espressif32?

Not tested as espressif32@8.0.0 yet.
I’ll try it.

My test was with ‘espressif32’.
So, I’ve just tested with ‘espressif32@8.0.0’.
Then upload successed on Ubuntu.
You are right!

platformio.ini:

[env:adafruit_feather_esp32s3_reversetft]
platform = espressif32@8.0.0
;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: espressif32@8.0.0; 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, 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.4.0
Serial port /dev/ttyACM0:
Connecting....
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

Uploading stub flasher...
Running stub flasher...
Stub flasher running.
Changing baud rate to 460800...
Changed.

Configuring flash size...
Flash will be erased from 0x00010000 to 0x0006efff...
Compressed 388720 bytes to 223331...
Writing at 0x0001bce5 ━━                               7.3% 16.00kB/218.10kB [0s] 
Writing at 0x0002636a ━━━━                            14.7% 32.00kB/218.10kB [0s] 
Writing at 0x0002bcb8 ━━━━━━$2578                         22.0% 48.00kB/218.10kB [1s] 
Writing at 0x00031e84 ━━━━━━━━$2578                       29.3% 64.00kB/218.10kB [1s] 
Writing at 0x00039e65 ━━━━━━━━━━━                     36.7% 80.00kB/218.10kB [1s] 
Writing at 0x0004100a ━━━━━━━━━━━━━                   44.0% 96.00kB/218.10kB [2s] 
Writing at 0x000465d1 ━━━━━━━━━━━━━━━                 51.4% 112.00kB/218.10kB [2s] 
Writing at 0x0004c0e9 ━━━━━━━━━━━━━━━━━$2578              58.7% 128.00kB/218.10kB [3s] 
Writing at 0x000514be ━━━━━━━━━━━━━━━━━━━$2578            66.0% 144.00kB/218.10kB [3s] 
Writing at 0x00056914 ━━━━━━━━━━━━━━━━━━━━━━          73.4% 160.00kB/218.10kB [3s] 
Writing at 0x0005c436 ━━━━━━━━━━━━━━━━━━━━━━━━        80.7% 176.00kB/218.10kB [4s] 
Writing at 0x00065697 ━━━━━━━━━━━━━━━━━━━━━━━━━━      88.0% 192.00kB/218.10kB [4s] 
Writing at 0x0006b229 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━$2578   95.4% 208.00kB/218.10kB [5s] 
Writing at 0x0006ee70 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% 218.10kB/218.10kB [5s] 
Wrote 388720 bytes (223331 compressed) at 0x00010000 in 5.5 seconds (567.3 kbit/s).
Verifying written data...
Hash of data verified.

Hard resetting via RTS pin...
=========================================================================== [SUCCESS] Took 16.34 seconds ===========================================================================

To heikkiw:
Try with platform = espressif32@8.0.0.
To clarify the issue, please follow the steps below:

  1. Set platform = espressif32@8.0.0 in platformio.ini.
  2. Execute platformio run -t clean to clear the environment.
  3. Execute platformio run to build the project and generate firmware.bin. At this stage, verify that the size of firmware.bin fits within the partition size you have defined.
  4. Connect your board.
  5. Execute pio run -e adafruit_feather_esp32s3_reversetft -t nobuild -t upload.

As an aside, you might notice “$2578” appearing in the upload progress bar; it seems something occurred during the copy-and-paste of the terminal output.
It’s nothing significant, and the display within VS Code itself is perfectly fine.

What this essentially proves is that the problem is the pioarduino platform, not the official espressf32(@8.0.0) platform.

This seems similar to https://github.com/pioarduino/platform-espressif32/issues/359 which wasn’t fixed but redirected to fix with a post-script. I don’t think that’s the right approach though if it works on the official platform. Did you verify a firmware uploaded with -t nobuild -t upload still runs when you erase the flash beforehand with esptool.py? Otherwise both have a bug right now, just at different stages. The issue suggests that the .bin it tries to upload is not the full firmware package at all.