Confusion about EN and BOOT0
Posted: Mon May 06, 2024 10:02 am
Hello,
in the ESP Docs there is a Boot Mode Selection guide. This states that EN needs to be pulled low. Then the boot0 pin is pulled to select either bootloader mode or run mode.
Here it is very cleary visible that EN is pulled low while boot0 is high. Then EN goes high again. Only after this boot0 goes low. Meaning the logic described in the guide is not correct. The boot0 pin goes low about 0.1 ms after EN goes high. An image is in the attachments.
How is this explainable? Why does the esptool not set the lines correctly yet it still works? Is this fixable somehow? I need a boot0 in the correct level while EN has the rising flank.
in the ESP Docs there is a Boot Mode Selection guide. This states that EN needs to be pulled low. Then the boot0 pin is pulled to select either bootloader mode or run mode.
I hooked up a logic analyzer to my ESP32 and observed the EN and Boot0 Lines upon flashing via Arduino IDE.The ESP32 will enter the serial bootloader when GPIO0 is held low on reset. Otherwise it will run the program in flash.
Here it is very cleary visible that EN is pulled low while boot0 is high. Then EN goes high again. Only after this boot0 goes low. Meaning the logic described in the guide is not correct. The boot0 pin goes low about 0.1 ms after EN goes high. An image is in the attachments.
How is this explainable? Why does the esptool not set the lines correctly yet it still works? Is this fixable somehow? I need a boot0 in the correct level while EN has the rising flank.