PlatformIO Community

No such file or directory: '.pioenvs\\tasmota\\firmware.bin'

I’m experiencing with the following error during upload tasmota bin to sonoff device:

.pioenvs\tasmota
Configuring upload protocol…
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
Looking for upload port…
Use manually specified: COM5
Uploading .pioenvs\tasmota\firmware.bin
usage: esptool write_flash [-h] [–erase-all]
[–flash_freq {keep,40m,26m,20m,80m}]
[–flash_mode {keep,qio,qout,dio,dout}]
[–flash_size FLASH_SIZE]
[–spi-connection SPI_CONNECTION] [–no-progress]
[–verify] [–compress | --no-compress]
[ …]
esptool write_flash: error: argument : [Errno 2] No such file or directory: '.pioenvs\tasmota\firmware.bin’

The file to be uploaded: firmware.bin is not found.
I inserted a debug line in the module: pio/rename-firmware.py and I can see that the file is renamed in:
renaming .pioenvs\tasmota\firmware.bin to–> .pioenvs\tasmota\tasmota.bin
I modified the rename-firmware.py module to create also firmware.bin file and now I can upload tasmota on sonoff device.

Is it just my problem or has someone else run into this problem?
Regards

It looks like they’ve been making changes to that part of their build system in just the last week… a bugfix or two to the rename-firmware.py script… and then it was deleted two days ago, and replaced with a file copy script. Probably best to re-sync with the tasmota codebase if possible.

Underlying issue seems to be they were renaming the file, so when it came to trying to upload, the file was missing. Should have copied it like is happening now, or also patching the filename… perhaps as part of a before_upload handler.