I recently got an nodemcu ESP8266 CP2102 and am trying to make a real-time grapher based on a tutorial on this site.
However when I try to upload sketch data, it displays the address and other thing for the module and says upload failed.
The sketch to be uploaded gives error 'esptool.FatalError: failed to connect : invalid head of packet (0x00)
I have tried googling the issue but cannot find a descriptive and easy to understand answer. (I'm newbie to esp8266). Can you guys please give me some tips on how to resolve this issue? (My Arduino IDE shows 2 random ports without connecting any devices, so perhaps this is the IDE's issue?) Thanks in advance!