Upload of File System Image doesn't work for NodeMCU 1.0 (ESP-12E Module)

Hi, so I want to upload a Spiffs image onto my NodeMCU, but when I try I get the following error:

Building SPIFFS image from ‘data’ directory to .pioenvs\nodemcuv2\spiffs.bin
Looking for upload port…
Auto-detected: COM5
Uploading .pioenvs\nodemcuv2\spiffs.bin
error: Failed to open COM5
error: espcomm_open failed
error: espcomm_upload_mem failed
*** [uploadfs] Error 2

Would be really nice if someone could help me.

Nevermind, if you close vscode and then reopen it, everything will work just fine.

1 Like

I have the same problem with ESPDuino. Nothing helps.
I’m sure the port is free. I see the ESP reset,

platform = espressif8266
board = espduino
framework = arduino

I found older reports of 2018 where the problem was supposed to be solved in newer versions of the ESP platform.
I have the latest insall op platform IO and VSC (fresh install of both)