调试IDF里的ethernet demo,出现emac: Timed out waiting for PHY register 0x2 to have value 0x0243(mask 0xffff). Current value 0xf

kelly1947
Posts: 7
Joined: Mon Sep 16, 2019 6:49 am

调试IDF里的ethernet demo,出现emac: Timed out waiting for PHY register 0x2 to have value 0x0243(mask 0xffff). Current value 0xf

Postby kelly1947 » Tue Sep 17, 2019 3:21 am

板子用的官方的Ethernet-Kit V1.1,上面用的是IP101芯片,IDF是最新的V3.3,example configuration如下
#
# Example Configuration
#
CONFIG_PHY_IP101=y
CONFIG_PHY_TLK110=
CONFIG_PHY_LAN8720=
CONFIG_PHY_ADDRESS=1
CONFIG_PHY_CLOCK_GPIO0_IN=y
CONFIG_PHY_CLOCK_GPIO0_OUT=
CONFIG_PHY_CLOCK_GPIO16_OUT=
CONFIG_PHY_CLOCK_GPIO17_OUT=
CONFIG_PHY_CLOCK_MODE=0
CONFIG_PHY_USE_POWER_PIN=
CONFIG_PHY_SMI_MDC_PIN=23
CONFIG_PHY_SMI_MDIO_PIN=18

烧录之后,打印如下:
W (302) cpu_start: Chip revision is higher than the one configured in menuconfig. Suggest to upgrade it.
I (306) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (318) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
E (1328) emac: Timed out waiting for PHY register 0x2 to have value 0x0243(mask 0xffff). Current value 0xffff
E (2328) emac: Timed out waiting for PHY register 0x3 to have value 0x0c54(mask 0xfff0). Current value 0xffff
E (3328) emac: Timed out waiting for PHY register 0x2 to have value 0x0243(mask 0xffff). Current value 0xffff
E (4328) emac: Timed out waiting for PHY register 0x3 to have value 0x0c54(mask 0xfff0). Current value 0xffff
E (5328) emac: Timed out waiting for PHY register 0x2 to have value 0x0243(mask 0xffff). Current value 0xffff
E (6328) emac: Timed out waiting for PHY register 0x3 to have value 0x0c54(mask 0xfff0). Current value 0xffff
E (7328) emac: Timed out waiting for PHY register 0x2 to have value 0x0243(mask 0xffff). Current value 0xffff
E (8328) emac: Timed out waiting for PHY register 0x3 to have value 0x0c54(mask 0xfff0). Current value 0xffff
E (9328) emac: Timed out waiting for PHY register 0x2 to have value 0x0243(mask 0xffff). Current value 0xffff
E (10328) emac: Timed out waiting for PHY register 0x3 to have value 0x0c54(mask 0xfff0). Current value 0xffff
E (11328) emac: Timed out waiting for PHY register 0x2 to have value 0x0243(mask 0xffff). Current value 0xffff

请问是配置的问题还是demo需要改动?我看到另一个帖子使用LAN8720会出现这个问题,我使用的是官方板子,没想到也中招了。。。

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

Re: 调试IDF里的ethernet demo,出现emac: Timed out waiting for PHY register 0x2 to have value 0x0243(mask 0xffff). Current value

Postby ESP_morris » Tue Sep 17, 2019 8:53 am

你好,官方开发板还需要如下配置,详见板子原理图:
CONFIG_PHY_USE_POWER_PIN=y
CONFIG_PHY_POWER_PIN=5

另外为了降低官方开发板的使用门槛,近期我们会将配置导入sdkconfig.defaults,方便上手直接使用


Who is online

Users browsing this forum: No registered users and 160 guests