I'm using an nodemcu and sometimes the upload fails with this error: warning: espcomm_send_command:

I’m using an nodemcu and sometimes the upload fails with this error:

warning: espcomm_send_command: didn’t receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
warning: espcomm_send_command: didn’t receive command response
error: espcomm_upload_mem failed

Most of the time it’s working. Someone ever had that problem? Maybe the flash chip is bad?

This can happen if the serial connection has a problem, e.g. baud rate too high / poor physical connection / serial adapter intermittent.

Baud rate is default (115209). Any tips how to check the serial connection? I also had the problems with 9600 baud