调试IDF里的ethernet demo,出现emac: Timed out waiting for PHY register 0x2 to have value 0x0243(mask 0xffff). Current value 0xf
Posted: 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会出现这个问题,我使用的是官方板子,没想到也中招了。。。
#
# 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会出现这个问题,我使用的是官方板子,没想到也中招了。。。