esp32外接lan8720模块报错

mulinluo
Posts: 4
Joined: Thu May 23, 2019 1:42 am

esp32外接lan8720模块报错

Postby mulinluo » Fri Jul 12, 2019 2:53 am

我使用esp32外接lan8720模块做ethernet。使用esp-idf-release-v3.2的Ethernet示例代码进行编译。clock信号使用的是lan8720模块上的50MHz晶振,nINT/REFCLKO引脚与gpio0连接,模式选择为Ethernet PHY Clock Mode (GPIO0 Input) 。编译后报错E (1301) emac: Reset EMAC Timeout。
具体log如下:

Code: Select all

I (0) cpu_start: App cpu up.
I (232) heap_init: Initializing. RAM available for dynamic allocation:
I (239) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (245) heap_init: At 3FFB4090 len 0002BF70 (175 KiB): DRAM
I (251) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (257) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (264) heap_init: At 40089B48 len 000164B8 (89 KiB): IRAM
I (270) cpu_start: Pro cpu start user code
I (288) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (291) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
E (1301) emac: Reset EMAC Timeout
请教大神这是什么原因导致的,我该怎么做?谢谢!

ESP_morris
Posts: 38
Joined: Wed Sep 05, 2018 6:23 am

Re: esp32外接lan8720模块报错

Postby ESP_morris » Mon Jul 15, 2019 7:35 am

1. 示波器查看GPIO0是否有50MHz时钟输入
2. 检查PHY的原理图,确保PHY地址在软件中被正确设置

Who is online

Users browsing this forum: No registered users and 2 guests