nodemcu error : "esptool.FatalError: Timed out waiting for packet header"

i bought a nodemcu from the internet, but at the beginning i could upload something like "blink" to it, after that i could no longer upload anything else to it, no matter what i uploaded, it always shows "esptool.FatalError: Timed out waiting for packet header" what should i do? i have already changed so much cable but it still doesn't work. and my baud rate is 115200.

I have the same issue. I was able to upload some example codes to my nodemcu and then after uploading one example code for a dht22 usage I cant upload nothing else, arduino ide always returns "esptool.FatalError: Timed out waiting for packet header"

WeberWang:
i bought a nodemcu from the internet, but at the beginning i could upload something like "blink" to it, after that i could no longer upload anything else to it, no matter what i uploaded, it always shows "esptool.FatalError: Timed out waiting for packet header" what should i do? i have already changed so much cable but it still doesn't work. and my baud rate is 115200.