espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.71k stars 7.43k forks source link

ABOUT ESP32 ETH_CLOCK_GPIO0_IN FOR LAN8720 Go in download mode #10475

Open hzhh110 opened 1 month ago

hzhh110 commented 1 month ago

Board

ESP32

Device Description

I use the external 50Mhz crystal calibrator to provide the GPIO0 and LAN8720 < ETH CLOCK GPIO0 in > with the crystal calibrator at the same time. The communication is good in the network cable mode, but it will enter the download mode randomly when it is powered on. How to deal with this?It is found that the power-on probability may fail to obtain the chip or the URL by using the ETH CLOCK GPIO0 OUT, the ETH CLOCK GPIO16 OUT, and the ETH CLOCK GPIO17 OUT

Hardware Configuration

I use the external 50Mhz crystal calibrator to provide the GPIO0 and LAN8720 < ETH CLOCK GPIO0 in > with the crystal calibrator at the same time. The communication is good in the network cable mode, but it will enter the download mode randomly when it is powered on. How to deal with this?It is found that the power-on probability may fail to obtain the chip or the URL by using the ETH CLOCK GPIO0 OUT, the ETH CLOCK GPIO16 OUT, and the ETH CLOCK GPIO17 OUT

Version

v3.0.4

IDE Name

PlatformIO

Operating System

MacOS V:12.1

Flash frequency

40

PSRAM enabled

yes

Upload speed

115200

Description

LAN8720

Sketch

LAN8720

Debug Message

LAN8720

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

hzhh110 commented 1 month ago

Want to know how to deal with the ETH CLOCK GPIO0 _ in to solve the problem of probability entering the download mode?

me-no-dev commented 1 month ago

Since GPIO0 is the BOOT select pin, maybe your LAN is pulling it LOW sometimes and causing you to go into Download. Have you tried connecting the LAN RST to the ESP EN pin?