Ethernet problem on mcb1700 baord based on lpc1758

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ethernet problem on mcb1700 baord based on lpc1758

717 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xiazhi8259 on Thu Apr 24 02:17:35 MST 2014
Hello,

I met a problem that the easyweb example can not work properly in my MCB1700 board while I am using the Keil IDE.
After I downloaded the firmware of easyweb, I ping the board with my modification IP address, but
the PC only display "host unreachable". I make sure the ip address of the board are in the same network segment whit
my computer,only difference in the last byte of the address. I don't know what's the problem.
who can help me to figure out the issue? Is there any documents which describe how to setup and use the ethernet correctly?
Labels (1)
0 Kudos
Reply
2 Replies

658 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sadegh.rabei on Thu Mar 10 07:03:59 MST 2016
Hello there,

i got a question about the easyweb example for the lpc1768.

Here's how to calculate the highlighted lines?

thank you.


[color=#c00]#define NUM_RX_FRAG         4           /* Num.of RX Fragments 4*1536= 6.0kB */
#define NUM_TX_FRAG         3           /* Num.of TX Fragments 3*1536= 4.6kB */ [/color]
#define ETH_FRAG_SIZE       1536        /* Packet Fragment size 1536 Bytes   */

#define ETH_MAX_FLEN        1536        /* Max. Ethernet Frame Size          */

/* EMAC variables located in 16K Ethernet SRAM _ bank 1 */
#define RX_DESC_BASE        0x20080000
#define RX_STAT_BASE        (RX_DESC_BASE + [color=#c00]NUM_RX_FRAG*8[/color]) // 4*(2*4)
#define TX_DESC_BASE        (RX_STAT_BASE + [color=#c00]NUM_RX_FRAG*8[/color]) // 4*(2*4)
#define TX_STAT_BASE        (TX_DESC_BASE + [color=#c00]NUM_TX_FRAG*8[/color]) // (4-1)*(2*4)
#define RX_BUF_BASE         (TX_STAT_BASE +[color=#c00] NUM_TX_FRAG*4[/color]) // (4-1)*(1*4)
#define TX_BUF_BASE         (RX_BUF_BASE  + [color=#c00]NUM_RX_FRAG*ETH_FRAG_SIZE[/color])

/* RX and TX descriptor and status definitions. */
#define RX_DESC_PACKET(i)   (*(unsigned int *)(RX_DESC_BASE   + 8*i))
#define RX_DESC_CTRL(i)     (*(unsigned int *)(RX_DESC_BASE+4 + 8*i))
#define RX_STAT_INFO(i)     (*(unsigned int *)(RX_STAT_BASE   + 8*i))
#define RX_STAT_HASHCRC(i)  (*(unsigned int *)(RX_STAT_BASE+4 + 8*i))
#define TX_DESC_PACKET(i)   (*(unsigned int *)(TX_DESC_BASE   + 8*i))
#define TX_DESC_CTRL(i)     (*(unsigned int *)(TX_DESC_BASE+4 + 8*i))
#define TX_STAT_INFO(i)     (*(unsigned int *)([color=#c00]TX_STAT_BASE   + 4*i[/color]))
#define RX_BUF(i)           ([color=#c00]RX_BUF_BASE + ETH_FRAG_SIZE*i[/color])
#define TX_BUF(i)           ([color=#c00]TX_BUF_BASE + ETH_FRAG_SIZE*i[/color])
0 Kudos
Reply

658 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by leluno on Fri Apr 25 03:10:17 MST 2014
Ping will only get a result, if icmp is programmed  on your stack. Check this first.

Install wireshark for checking the connection between your lpc-board and the pc. With wireshark you can find out, where your connection hangs.
0 Kudos
Reply