问题:使用DP83848 PHY RMII模式,通过RT1176 M7 MDIO接口可以控制PHY芯片自动协商完成,但是TX DATA 0,1,RX DATA 0,1没有数据?软件已经运行到下面ENET_SendFrame,就是不能发送数据
调试信息如下:
etharp_timer
netif: setting default interface en
dhcp_start(netif=8001292C) en0
dhcp_start(): mallocing new DHCP client
dhcp_start(): allocated dhcp
dhcp_start(): starting DHCP configuration
udp_bind(ipaddr =
0.0.0.0
, port = 68)
udp_bind: bound to
0.0.0.0
, port 68)
udp_connect: connected to
0.0.0.0
, port 67)
dhcp_discover()
pbuf_alloc(length=308)
pbuf_alloc(length=308) == 80012B44
transaction id xid(abcd0001)
dhcp_discover: making request
dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)
pbuf_add_header: old 80012B8C new 80012B84 (8)
udp_send: added header in given pbuf 80012B44
udp_send: sending datagram of length 316
udp_send: UDP packet length 316
inet_chksum_pseudo(): checksumming pbuf 80012B44 (has next 0)
inet_chksum_pseudo(): pbuf chain lwip_chksum()=87d0
udp_send: UDP checksum 0x782f
udp_send: ip_output_if (,,,,0x11,)
pbuf_add_header: old 80012B84 new 80012B70 (20)
ip4_output_if: en0
ip4_output_if: call netif->output()
pbuf_add_header: old 80012B70 new 80012B62 (14)
ethernet_output: sending packet 80012B44
______ethernetif_linkoutput[651]_______
______ethernetif_linkoutput[657]_______
______ethernetif_linkoutput[691]_______
______enet_send_frame[485]_______
______ethernetif->base=40424000_data=80012B62_length=15E_____
FF FF FF FF FF FF 14 DD A9 DB 8B 74 08 00 45 00 01
50 00 00 00 00 FF 11 BA 9D 00 00 00 00 FF FF FF
FF 00 44 00 43 01 3C 2F 78 01 01 06 00 AB CD 00
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 14 DD A9 DB 8B 74 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 63 82 53 63 35 01 01 39 02 05 DC
37 03 01 03 1C FF 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 ______ENET_SendFrame[1847]_______
______ENET_SendFrame[1865]____ringId=0___
______txBdRing->txBdBase=80800040___ txBdRing->txGenIdx=0____
______curBuffDescrip->control=400____
___base=40424000___base->TDAR=0_______
______base->ECR=F0000102_______
______base->EIMR=E200000_______
______base->EIR=0_______
______base->TDSR=80800040_______
______base->RDSR=80800000_______
______base->TCR=4_______
______base->RCR=5EE4104_______
______base->PAUR=8B748808_______
______base->PALR=14DDA9DB_______
______base->RMON_T_PACKETS=0_______
______base->RMON_T_BC_PKT=0_______
______base->RMON_T_MC_PKT=0_______
______ENET_SendFrame[1941]_______
______enet_send_frame[497]_____result=0__
______kStatus_ENET_TxFrameBusy=fa6_
dhcp_discover: deleting()
pbuf_free(80012B44)
pbuf_free: deallocating 80012B44
dhcp_discover: SELECTING
dhcp_discover(): set request timeout 2000 msecs
etharp_timer
Hi,
感谢回复。
1) 有没有方法可以读取RT1176寄存器,可以确定RMII接口配置正确?
-- 很多IDE在debug时,都是可以查看外设寄存器的具体值的。
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi,
非常感谢使用NXP产品,很高兴为你提供技术支持!
在找到问题之前,我想知道你的测试环境,比如开发板,测试代码(如果使用SDK库中的代码,是否做了修改)等。
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------