wvmarle:
Most likely your ESP is not in upload mode. Make sure you have GPIO0 pulled low while switching it on.
Actually, I connected GPIO2 to GND instead of connecting GPIO0 to GND yesterday. That was my mistake. I fixed the mistake and I was able to upload the code but I received another error in the serial monitor.
Here's the error:
m 16
tail 8
chksum 0x2d
cs
Fatal exception (0):
epc1=0x40100009, epc2=0x00000000, epc3=0x00000000, ex3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x40100009, epc2=0x00000000, epc3=0x00000000, excvaddr⸮⸮000000, depc=0x00000000
Fatal exception (0):
epc1=0x40100009, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x40100009, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Any advice on this?