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?