PlatformIO Community

How to upgrade esptool to 2.8

How do I upgrade the toolchain to use esptool 2.8.
Everytime I compile
PackageManager: Installing tool-esptoolpy @ ~1.20600.0
tool-esptoolpy @ 1.20600.0 has been successfully installed!

esptoolpy 1.20600 is installed. I have searched and can not find where this is coded. I delete the esptoolpy 1.20600 folder and compile again but PackageManager reinstalls it.
How do I tell PackageManager to install tool-esptoolpy @ 1.20800 ?

Thanks

Is there anything which doesn’t work with the current esptool version?

The 1.20600.0 comes from PIO’s software repositories and is not directly the esptool repository version. Here I’m assuming the underlying version is 2.6 (from 1.20600.0)

The tools and repositories for them are defined in the paltform’s platform.json file, e.g. here https://github.com/platformio/platform-espressif8266/blob/develop/platform.json.

Given that version 1.20800.0 already exists (see https://dl.bintray.com/platformio/dl-packages/) you may also use an override directive as seen in docs, you could do

platform_packages =
  tool-esptoolpy@1.20800.0

in the platformio.ini

Thanks for the quick reply. I was able to force platform_packages =
tool-esptoolpy@1.20800.0 But I still have my original problem. Errors why uploading code to D1-mini and a DOIT esp32 board.
I also tried slowing the speed to 115200 but that did not fix the issues either.
I can get it to work some times like 1 in 5 tries it will work. Very frustrating.
The error output is below. Any suggestions you have will be appreciated.

Configuring upload protocol...
AVAILABLE: 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: COM4
Uploading .pio\build\esp32eSPIDOIT\firmware.bin
esptool.py v2.8
Serial port COM4
Connecting....
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 24:6f:28:9e:a6:54
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Warning: Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB
Compressed 15872 bytes to 10319...

A fatal error occurred: Timed out waiting for packet content
*** [upload] Error 2
============================================================ [FAILED] Took 11.24 seconds ============================================================

Environment         Status    Duration
------------------  --------  ------------
esp32eSPIFEATHER32  IGNORED
esp32eSPIDOIT       FAILED    00:00:11.238
esp32dev            IGNORED
======================================================= 1 failed, 0 succeeded in 00:00:11.238 =======================================================
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.