hi Greg,
My Board Debug messages:
netdev_register: Registered MAC: 00:00:00:00:00:00 as dev: eth0
netdev_ifrioctl: cmd: 1803
netdev_ifrioctl: cmd: stm32_ethconfig: Reset the Ethernet block
stm32_ethconfig: Initialize the PHY
1794
stm32_ifdown: Taking the network down
stm32_ifup: Bringing up: 192.168.150.56
stm32_phyinit: PHYVAL: 385 | 0x0181
stm32_phyinit: Find PHY: DM9161AEP
stm32_phyinit: Find PHY: DM9161AEP MII_MSR_LINKSTATUS 0x0000784d ok
stm32_phyinit: Read the PHY MSR: 30797 | 0x0000784d
stm32_phyinit: Read2 the PHY MSR: 30829 | 0x0000786d
stm32_phyinit: read PHY status register: 0x00000514 | 0x00000100
stm32_phyinit: Duplex: FULL Speed: 100 MBps
stm32_ethconfig: Initialize the MAC and DMA
stm32_ethconfig: Enable normal operation
dump_netinfo: id=0 PHYVAL: 0x00003100
dump_netinfo: id=1 PHYVAL: 0x0000786d
dump_netinfo: id=2 PHYVAL: 0x00000181
dump_netinfo: id=3 PHYVAL: 0x0000b8a0
dump_netinfo: id=4 PHYVAL: 0x000001e1
dump_netinfo: id=5 PHYVAL: 0x00004de1
dump_netinfo: id=6 PHYVAL: 0x00000003
dump_netinfo: id=7 PHYVAL: 0x00000000
dump_netinfo: id=8 PHYVAL: 0x00000000
dump_netinfo: id=9 PHYVAL: 0x00000000
dump_netinfo: id=10 PHYVAL: 0x00000000
dump_netinfo: id=11 PHYVAL: 0x00000000
dump_netinfo: id=12 PHYVAL: 0x00000000
dump_netinfo: id=13 PHYVAL: 0x00000000
dump_netinfo: id=14 PHYVAL: 0x00000000
dump_netinfo: id=15 PHYVAL: 0x00000000
dump_netinfo: id=16 PHYVAL: 0x00000514
dump_netinfo: id=17 PHYVAL: 0x00008208
dump_netinfo: id=18 PHYVAL: 0x00007800
dump_netinfo: id=19 PHYVAL: 0x00000000
dump_netinfo: id=20 PHYVAL: 0x00000000
dump_netinfo: id=21 PHYVAL: 0x00001f00
dump_netinfo: id=22 PHYVAL: 0x00000001
dump_netinfo: id=23 PHYVAL: 0x00000001
dump_netinfo: id=24 PHYVAL: 0x0000cce0
dump_netinfo: id=25 PHYVAL: 0x00000000
dump_netinfo: id=26 PHYVAL: 0x00000000
dump_netinfo: id=27 PHYVAL: 0x00000000
dump_netinfo: id=28 PHYVAL: 0x00000000
dump_netinfo: id=29 PHYVAL: 0x00000000
dump_netinfo: id=30 PHYVAL: 0x00000000
dump_netinfo: id=31 PHYVAL: 0x00000000
stm32_macaddress: eth0 MAC: 00:e0:de:ad:be:ef
dump_netinfo: id=0 PHYVAL: 0x00003100
dump_netinfo: id=1 PHYVAL: 0x0000786d
dump_netinfo: id=2 PHYVAL: 0x00000181
dump_netinfo: id=3 PHYVAL: 0x0000b8a0
dump_netinfo: id=4 PHYVAL: 0x000001e1
dump_netinfo: id=5 PHYVAL: 0x00004de1
dump_netinfo: id=6 PHYVAL: 0x00000001
dump_netinfo: id=7 PHYVAL: 0x00000000
dump_netinfo: id=8 PHYVAL: 0x00000000
dump_netinfo: id=9 PHYVAL: 0x00000000
dump_netinfo: id=10 PHYVAL: 0x00000000
dump_netinfo: id=11 PHYVAL: 0x00000000
dump_netinfo: id=12 PHYVAL: 0x00000000
dump_netinfo: id=13 PHYVAL: 0x00000000
dump_netinfo: id=14 PHYVAL: 0x00000000
dump_netinfo: id=15 PHYVAL: 0x00000000
dump_netinfo: id=16 PHYVAL: 0x00000514
dump_netinfo: id=17 PHYVAL: 0x00008208
dump_netinfo: id=18 PHYVAL: 0x00007800
dump_netinfo: id=19 PHYVAL: 0x00000000
dump_netinfo: id=20 PHYVAL: 0x00000000
dump_netinfo: id=21 PHYVAL: 0x00001f00
dump_netinfo: id=22 PHYVAL: 0x00000000
dump_netinfo: id=23 PHYVAL: 0x00000000
dump_netinfo: id=24 PHYVAL: 0x0000cce0
dump_netinfo: id=25 PHYVAL: 0x00000000
dump_netinfo: id=26 PHYVAL: 0x00000000
dump_netinfo: id=27 PHYVAL: 0x00000000
dump_netinfo: id=28 PHYVAL: 0x00000000
dump_netinfo: id=29 PHYVAL: 0x00000000
dump_netinfo: id=30 PHYVAL: 0x00000000
dump_netinfo: id=31 PHYVAL: 0x00000000
netdev_ifrioctl: cmd: 1796
netdev_ifrioctl: cmd: 1800
nsh_ttelnetd_daemon: Accepting connections on port 23
elnetstart: Starting the Telnet daemon
NuttShell (NSH)
nsh> ping 192.168.150.1
stm32_txavail: ifup: 1
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Send ECHO request: seqno=1
uip_icmpsend: Outgoing ICMP packet length: 84 (84)
uip_arp_out: ARP request for IP 196a8c0
stm32_transmit: d_len: 42 d_buf: 2000290c txhead: 200004cc tdes0: 00100000
stm32_transmit: txhead: 200004dc txtail: 200004cc inflight: 1
uip_ping: Start time: 0x00000f3d seqno: 1
stm32_freeframe: txhead: 200004dc txtail: 200004cc inflight: 1
stm32_freeframe: txtail: 200004cc tdes0: 70100000 tdes2: 2000290c tdes3: 200004dc
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Ping timeout
ping_interrupt: Resuming
uip_ping: Return error=110
stm32_txavail: ifup: 1
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Send ECHO request: seqno=2
uip_icmpsend: Outgoing ICMP packet length: 84 (84)
uip_arp_out: ARP request for IP 196a8c0
stm32_transmit: d_len: 42 d_buf: 20002d0c txhead: 200004dc tdes0: 00100000
stm32_transmit: txhead: 200004ec txtail: 200004dc inflight: 1
uip_ping: Start time: 0x00000fe3 seqno: 2
stm32_freeframe: txhead: 200004ec txtail: 200004dc inflight: 1
stm32_freeframe: txtail: 200004dc tdes0: 70100000 tdes2: 20002d0c tdes3: 200004ec
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Ping timeout
ping_interrupt: Resuming
uip_ping: Return error=110
stm32_txavail: ifup: 1
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Send ECHO request: seqno=3
uip_icmpsend: Outgoing ICMP packet length: 84 (84)
uip_arp_out: ARP request for IP 196a8c0
stm32_transmit: d_len: 42 d_buf: 2000250c txhead: 200004ec tdes0: 00100000
stm32_transmit: txhead: 200004fc txtail: 200004ec inflight: 1
uip_ping: Start time: 0x00001048 seqno: 3
stm32_freeframe: txhead: 200004fc txtail: 200004ec inflight: 1
stm32_freeframe: txtail: 200004ec tdes0: 70100000 tdes2: 2000250c tdes3: 200004fc
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Ping timeout
ping_interrupt: Resuming
uip_ping: Return error=110
stm32_txavail: ifup: 1
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Send ECHO request: seqno=4
uip_icmpsend: Outgoing ICMP packet length: 84 (84)
uip_arp_out: ARP request for IP 196a8c0
stm32_transmit: d_len: 42 d_buf: 2000350c txhead: 200004fc tdes0: 00100000
stm32_transmit: txhead: 200004cc txtail: 200004fc inflight: 1
uip_ping: Start time: 0x000010ad seqno: 4
stm32_freeframe: txhead: 200004cc txtail: 200004fc inflight: 1
stm32_freeframe: txtail: 200004fc tdes0: 70100000 tdes2: 2000350c tdes3: 200004cc
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Ping timeout
ping_interrupt: Resuming
uip_ping: Return error=110
stm32_txavail: ifup: 1
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Send ECHO request: seqno=5
uip_icmpsend: Outgoing ICMP packet length: 84 (84)
uip_arp_out: ARP request for IP 196a8c0
stm32_transmit: d_len: 42 d_buf: 2000310c txhead: 200004cc tdes0: 70100000
stm32_transmit: txhead: 200004dc txtail: 200004cc inflight: 1
uip_ping: Start time: 0x00001112 seqno: 5
stm32_freeframe: txhead: 200004dc txtail: 200004cc inflight: 1
stm32_freeframe: txtail: 200004cc tdes0: 70100000 tdes2: 2000310c tdes3: 200004dc
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Ping timeout
ping_interrupt: Resuming
uip_ping: Return error=110
stm32_txavail: ifup: 1
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Send ECHO request: seqno=6
uip_icmpsend: Outgoing ICMP packet length: 84 (84)
uip_arp_out: ARP request for IP 196a8c0
stm32_transmit: d_len: 42 d_buf: 20002d0c txhead: 200004dc tdes0: 70100000
stm32_transmit: txhead: 200004ec txtail: 200004dc inflight: 1
uip_ping: Start time: 0x00001177 seqno: 6
stm32_freeframe: txhead: 200004ec txtail: 200004dc inflight: 1
stm32_freeframe: txtail: 200004dc tdes0: 70100000 tdes2: 20002d0c tdes3: 200004ec
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Ping timeout
ping_interrupt: Resuming
uip_ping: Return error=110
stm32_txavail: ifup: 1
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Send ECHO request: seqno=7
uip_icmpsend: Outgoing ICMP packet length: 84 (84)
uip_arp_out: ARP request for IP 196a8c0
stm32_transmit: d_len: 42 d_buf: 2000250c txhead: 200004ec tdes0: 70100000
stm32_transmit: txhead: 200004fc txtail: 200004ec inflight: 1
uip_ping: Start time: 0x000011dc seqno: 7
stm32_freeframe: txhead: 200004fc txtail: 200004ec inflight: 1
stm32_freeframe: txtail: 200004ec tdes0: 70100000 tdes2: 2000250c tdes3: 200004fc
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Ping timeout
ping_interrupt: Resuming
uip_ping: Return error=110
stm32_txavail: ifup: 1
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Send ECHO request: seqno=8
uip_icmpsend: Outgoing ICMP packet length: 84 (84)
uip_arp_out: ARP request for IP 196a8c0
stm32_transmit: d_len: 42 d_buf: 2000350c txhead: 200004fc tdes0: 70100000
stm32_transmit: txhead: 200004cc txtail: 200004fc inflight: 1
uip_ping: Start time: 0x00001241 seqno: 8
stm32_freeframe: txhead: 200004cc txtail: 200004fc inflight: 1
stm32_freeframe: txtail: 200004fc tdes0: 70100000 tdes2: 2000350c tdes3: 200004cc
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Ping timeout
ping_interrupt: Resuming
uip_ping: Return error=110
stm32_txavail: ifup: 1
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Send ECHO request: seqno=9
uip_icmpsend: Outgoing ICMP packet length: 84 (84)
uip_arp_out: ARP request for IP 196a8c0
stm32_transmit: d_len: 42 d_buf: 2000310c txhead: 200004cc tdes0: 70100000
stm32_transmit: txhead: 200004dc txtail: 200004cc inflight: 1
uip_ping: Start time: 0x000012a6 seqno: 9
stm32_freeframe: txhead: 200004dc txtail: 200004cc inflight: 1
stm32_freeframe: txtail: 200004cc tdes0: 70100000 tdes2: 2000310c tdes3: 200004dc
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Ping timeout
ping_interrupt: Resuming
uip_ping: Return error=110
stm32_txavail: ifup: 1
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Send ECHO request: seqno=10
uip_icmpsend: Outgoing ICMP packet length: 84 (84)
uip_arp_out: ARP request for IP 196a8c0
stm32_transmit: d_len: 42 d_buf: 20002d0c txhead: 200004dc tdes0: 70100000
stm32_transmit: txhead: 200004ec txtail: 200004dc inflight: 1
uip_ping: Start time: 0x0000130b seqno: 10
stm32_freeframe: txhead: 200004ec txtail: 200004dc inflight: 1
stm32_freeframe: txtail: 200004dc tdes0: 70100000 tdes2: 20002d0c tdes3: 200004ec
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
uip_callbackexecute: Call event=80138e1 with flags=0010
ping_interrupt: flags: 0010
ping_interrupt: Ping timeout
ping_interrupt: Resuming
uip_ping: Return error=110
PING 192.168.150.1 56 bytes of data
10 packets transmitted, 0 received, 100% packet loss, time 10750 ms
darcy
Post by Gregory NHi, Shenzhou
You said that ping does not work. What kind of debug output do you see when you do the ping. What kind of error messages do you see when you ping?
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=y
CONFIG_DEBUG_NET=y
CONFIG_STM32_ETHMAC_REGDEBUG=y Will show every register access.
Greg