ESP32 Helloworld Program Flash failed #97
-
Hi, I am trying to flash hello world program very first time to ESP32 bought from Amazon. while i run idf.py -p /dev/tty/USB0 flash monitor, it reports the below. I use my macbook, with ubuntu VM and attached the device to virtualbox for access. Failed to connect to ESP32: Wrong boot mode detected (0x13)! The chip needs to be in download mode. Any help is appreciated. -Prasanna |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
hi @prasannabe2004 |
Beta Was this translation helpful? Give feedback.
-
Thank you. Yes I tried to hold the Boot button while flashing, it works. Is that meant, any problem with the device? |
Beta Was this translation helpful? Give feedback.
-
Any workaround to avoid holding the boot button while flashing and monitor. It is not pretty consistent i have to repeat lot of times to get flashed and get into monitor mode. |
Beta Was this translation helpful? Give feedback.
-
usually, the boot pin is controlled by the DTR and RTS of the serial lines from the serial to USB converter. In other words, when the pc is ready to flash it "should" automatically change the pins voltage.
also maybe try a different cable or try it on a different PC if you can Alternatively you may need another board and use that one as a spare |
Beta Was this translation helpful? Give feedback.
-
@Mair - My board doesn't come with any schemantic. So not sure what it is. I tried with different PC and OS. No luck. So far still holding the boot button while flash and monitor as a work around. Though it is not convenient. |
Beta Was this translation helpful? Give feedback.
@prasannabe2004,
usually, the boot pin is controlled by the DTR and RTS of the serial lines from the serial to USB converter. In other words, when the pc is ready to flash it "should" automatically change the pins voltage.
Have a look at this scematic
https://docs.zohopublic.com/file/kohvpddd1cff937ec4de5a828ac624e60a74d
in there you will notice the following
also maybe try a different cable or try it on a different PC if you can
Alternatively you may need another board and use that one as a spare