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.
Dear all,
We have designed a board using LPC2388 and DP83848 PHY referencing the MCB2300 schematics. I am trying to test the ethernet driver for it and cannot receive any new frames. It doesn't call EMAC Ethernet Controller Interrupt function - interrupt_ethernet(void) at all.
I have compiled the ftp_demo example and debugged it. It can intialize the ethernet interface but do not receive any new frames. Please see the debug output at uart0 below:
MEM: Initialize Memory Pool 8192 bytes ETH: Initialize Ethernet interface ARP: Initialize 10 Cache entries UDP: Initialize 2 Sockets TCP: Initialize 6 Sockets FTP: Initialize 3 Sessions, Port 21 TCP: Socket 1 allocated TCP: Socket 1 Listen TCP: Socket 2 allocated TCP: Socket 3 allocated TCP: Socket 3 Listen TCP: Socket 4 allocated TCP: Socket 5 allocated TCP: Socket 5 Listen TCP: Socket 6 allocated NBNS:Initialize NetBIOS Name Service UDP: Socket 1 allocated UDP: Socket 1, port 137 Opened
Any tip to my problem would be helpful.
thank you Tirumal
You said you have "designed" a board.
An essential part of that is to have a test & debug strategy in mind...
I would suggest that you start by making simple test/debug routines on the Keil board - things like reading & writing registers, toggling IOs, sending & receiving simple IP packets, loop-back,...
Get these working on the Keil board, then run them on your own board.
Thank your for your suggestions. What wonders me is that inspite of having the same design as MCB2300, ethernet doesn't work.
Does the schematic provided at keil website are current one or old version?
Reading and Writing registers doesn't help me but I have to send simple IP packets, which I think i am doing with http_server/ftp example.
I cannot debug much bcos of tcp/ip libs are provided from keil...hmmm
I have to look why it is not entering the interrupt function: interrupt_ethernet and is cause of this problem.
VICVectAddr21 = (U32)interrupt_ethernet;
regards, Tirumal