We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I'm using a MCB2300 with LPC2368 and the DNS_demo program. But I can't get the DHCP client and DNS Address from TCPNET working. How could i experiment? Thanks!
This is Debug information: DNS Resolver Demo Example
Resolving host: http://www.google.com ETH ERR: Local IP address: 0.0.0.0 ETH ERR: Local IP address: 0.0.0.0 ETH ERR: Local IP address: 0.0.0.0 ETH ERR: Local IP address: 0.0.0.0 ETH ERR: Local IP address: 0.0.0.0 ETH ERR: Local IP address: 0.0.0.0 ETH ERR: Local IP address: 0.0.0.0 ETH ERR: Local IP address: 0.0.0.0 ETH ERR: Local IP address: 0.0.0.0 ETH ERR: Local IP address: 0.0.0.0 ETH ERR: Local IP address: 0.0.0.0 DNS Resolver Timeout expired, Host Address not resolved. DHCP ERR:Timeout for retransm. too big, Next state INIT
Most likely a DHCP server is not working or a LAN connection is broken.
Please check a HTTP_Demo example first and try to connect to a mcb2300 host from a web browser.
Franc
I have try all MCB2300's demo program , but all of them could't work. This is the full debug information of DNS demo program.
MEM: Initialize dyn.Memory Pool size 8192 bytes ETH: Initialize Ethernet interface ARP: Initialize 10 Cache entries UDP: Initialize 3 Sockets NBNS:Initialize NetBIOS Name Service UDP: Searching for free UDP Socket... UDP: Free UDP Socket 0 allocated UDP: Socket 0, port 137 Opened DHCP:Initialize DHCP Client UDP: Searching for free UDP Socket... UDP: Free UDP Socket 1 allocated UDP: Socket 1, port 68 Opened DNS: Initialize DNS Resolver UDP: Searching for free UDP Socket... UDP: Free UDP Socket 2 allocated UDP: Socket 2, port 53 Opened
DNS Resolver Demo Example DHCP:State INIT, Sending DHCP_DISCOVER... DHCP: Sending request to Server MEM: Allocating 356 bytes MEM: Blocks: 1, Load: 356 bytes UDP: Sending UDP frame, Socket 1, data len: 300 bytes IP : Sending IP frame... IP : Dest. IP: 255.255.255.255 IP : Frame len: 328 bytes IP : Protocol: 00, Id: 0001 ETH: Sending Ethernet frame... ETH: Dest. MAC: FF:FF:FF:FF:FF:FF ETH: Frame len: 342 MEM: Releasing 356 bytes MEM: Counter: 0, Load: 0 bytes DHCP: Next state SELECTING DHCP:State SELECTING... DHCP: Retransmitting DHCP_DISCOVER DHCP: Sending request to Server MEM: Allocating 356 bytes MEM: Blocks: 1, Load: 356 bytes UDP: Sending UDP frame, Socket 1, data len: 300 bytes IP : Sending IP frame... IP : Dest. IP: 255.255.255.255 IP : Frame len: 328 bytes IP : Protocol: 11, Id: 0002 ETH: Sending Ethernet frame... ETH: Dest. MAC: FF:FF:FF:FF:FF:FF ETH: Frame len: 342 MEM: Releasing 356 bytes MEM: Counter: 0, Load: 0 bytes
Resolving host: http://www.google.com DNS: Resolving host: 'http://www.google.com' DNS: Sending request to DNS Server MEM: Allocating 88 bytes MEM: Blocks: 1, Load: 88 bytes UDP: Sending UDP frame, Socket 2, data len: 32 bytes IP : Sending IP frame... IP : Dest. IP: 202.106.0.20 IP : Frame len: 60 bytes IP : Protocol: 11, Id: 0003 ETH: Sending Ethernet frame... ETH ERR: Local IP address: 0.0.0.0 MEM: Releasing 88 bytes MEM: Counter: 0, Load: 0 bytes DNS: Retransmitting DNS request DNS: Sending request to DNS Server MEM: Allocating 88 bytes MEM: Blocks: 1, Load: 88 bytes UDP: Sending UDP frame, Socket 2, data len: 32 bytes IP : Sending IP frame... IP : Dest. IP: 202.106.0.20 IP : Frame len: 60 bytes IP : Protocol: 11, Id: 0004 ETH: Sending Ethernet frame... ETH ERR: Local IP address: 0.0.0.0 MEM: Releasing 88 bytes MEM: Counter: 0, Load: 0 bytes DNS: Retransmitting DNS request DNS: Sending request to DNS Server MEM: Allocating 88 bytes MEM: Blocks: 1, Load: 88 bytes UDP: Sending UDP frame, Socket 2, data len: 32 bytes IP : Sending IP frame... IP : Dest. IP: 202.106.0.20 IP : Frame len: 60 bytes IP : Protocol: 11, Id: 0005 ETH: Sending Ethernet frame... ETH ERR: Local IP address: 0.0.0.0 MEM: Releasing 88 bytes MEM: Counter: 0, Load: 0 bytes DNS: Retransmitting DNS request DNS: Sending request to DNS Server MEM: Allocating 88 bytes MEM: Blocks: 1, Load: 88 bytes UDP: Sending UDP frame, Socket 2, data len: 32 bytes IP : Sending IP frame... IP : Dest. IP: 202.106.0.20 IP : Frame len: 60 bytes IP : Protocol: 11, Id: 0006 ETH: Sending Ethernet frame... ETH ERR: Local IP address: 0.0.0.0 MEM: Releasing 88 bytes MEM: Counter: 0, Load: 0 bytes DHCP:State SELECTING... DHCP: Retransmitting DHCP_DISCOVER DHCP: Sending request to Server MEM: Allocating 356 bytes MEM: Blocks: 1, Load: 356 bytes UDP: Sending UDP frame, Socket 1, data len: 300 bytes IP : Sending IP frame... IP : Dest. IP: 255.255.255.255 IP : Frame len: 328 bytes IP : Protocol: 11, Id: 0007 ETH: Sending Ethernet frame... ETH: Dest. MAC: FF:FF:FF:FF:FF:FF ETH: Frame len: 342 MEM: Releasing 356 bytes MEM: Counter: 0, Load: 0 bytes DNS: Retransmitting DNS request DNS: Sending request to DNS Server MEM: Allocating 88 bytes MEM: Blocks: 1, Load: 88 bytes UDP: Sending UDP frame, Socket 2, data len: 32 bytes IP : Sending IP frame... IP : Dest. IP: 202.106.0.20 IP : Frame len: 60 bytes IP : Protocol: 11, Id: 0008 ETH: Sending Ethernet frame... ETH ERR: Local IP address: 0.0.0.0 MEM: Releasing 88 bytes MEM: Counter: 0, Load: 0 bytes DNS: Retransmitting DNS request DNS: Sending request to DNS Server MEM: Allocating 88 bytes MEM: Blocks: 1, Load: 88 bytes UDP: Sending UDP frame, Socket 2, data len: 32 bytes IP : Sending IP frame... IP : Dest. IP: 202.106.0.20 IP : Frame len: 60 bytes IP : Protocol: 11, Id: 0009 ETH: Sending Ethernet frame... ETH ERR: Local IP address: 0.0.0.0 MEM: Releasing 88 bytes MEM: Counter: 0, Load: 0 bytes DNS: Switching to Secondary DNS Server. DNS: Retransmitting DNS request DNS: Sending request to DNS Server MEM: Allocating 88 bytes MEM: Blocks: 1, Load: 88 bytes UDP: Sending UDP frame, Socket 2, data len: 32 bytes IP : Sending IP frame... IP : Dest. IP: 219.141.136.10 IP : Frame len: 60 bytes IP : Protocol: 11, Id: 000A ETH: Sending Ethernet frame... ETH ERR: Local IP address: 0.0.0.0 MEM: Releasing 88 bytes MEM: Counter: 0, Load: 0 bytes DNS: Retransmitting DNS request DNS: Sending request to DNS Server MEM: Allocating 88 bytes MEM: Blocks: 1, Load: 88 bytes UDP: Sending UDP frame, Socket 2, data len: 32 bytes IP : Sending IP frame... IP : Dest. IP: 219.141.136.10 IP : Frame len: 60 bytes IP : Protocol: 11, Id: 000B ETH: Sending Ethernet frame... ETH ERR: Local IP address: 0.0.0.0 MEM: Releasing 88 bytes MEM: Counter: 0, Load: 0 bytes DNS: Retransmitting DNS request DNS: Sending request to DNS Server MEM: Allocating 88 bytes MEM: Blocks: 1, Load: 88 bytes UDP: Sending UDP frame, Socket 2, data len: 32 bytes IP : Sending IP frame... IP : Dest. IP: 219.141.136.10 IP : Frame len: 60 bytes IP : Protocol: 11, Id: 000C ETH: Sending Ethernet frame...
From the log it is obvious that the ethernet is not working, because nothing is received.
Did you check the ethernet cable? For connection with a LAN switch you need a straight-through cable. Some of the LAN switches also have an Auto MDI/MDI-X crossover detection and are able to work with both crossover and straight-through cables.
If there is no problem with the LAN cabling, then there must be a problem with your MCB2300, which needs a repairing.
Maybe you have an outdated RL-ARM which does not support the new LPC2368 silicon revision. Current RL-ARM version is v3.22a
http://www.keil.com/update/rl-arm.asp http://www.keil.com/update/rvmdk.asp