Plot code LPCOpen TCP echo example from MCUXPresso to Keil for LPC1778

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Plot code LPCOpen TCP echo example from MCUXPresso to Keil for LPC1778

460 次查看
aus_swsol
Contributor I

Dear expert,

Im struggling troubleshoot the issue that my LAN doesnt respond to the ping. I have build & run using the TCP echo & webserver example using MCUXPresso for my LPC1778 and its working. However, after plot into keil, the LAN doesnt respond to the ping. Its only managed to initialize & detect if the link is up or down. Please help me. Below it the debug print from both IDE, it is identical. Attached the code for keil.

(15:39:44.400) CPU: 120000000<CR>
(15:39:44.424) IP_ADDR : 192.168.1.93<CR>
(15:39:44.424) NET_MASK : 255.255.255.0<CR>
(15:39:44.424) GATEWAY_IP : 192.168.1.254<CR>
(15:39:44.424) Link connect status: 0<CR>
(15:39:44.424) LwIP initialized, IP: 192.168.1.93
(15:39:44.424) Netif flags: 0x63
(15:39:44.424) PHY REG[0] = 0x1000(VALID)
(15:39:44.424) PHY REG[1] = 0x7849(VALID)
(15:39:44.456) PHY REG[2] = 0x2000(VALID)
(15:39:44.456) PHY REG[3] = 0x5C90(VALID)
(15:39:44.456) PHY REG[4] = 0x 1E1(VALID)
(15:39:44.456) PHY REG[5] = 0x 0(VALID)
(15:39:44.456) PHY REG[6] = 0x 4(VALID)
(15:39:44.456) PHY REG[7] = 0x2001(VALID)
(15:39:44.456) PHY REG[16] = 0x 0(VALID)
(15:39:44.456) PHY REG[17] = 0x 0(VALID)
(15:39:44.456) PHY REG[18] = 0x 0(VALID)
(15:39:44.456) PHY REG[19] = 0x 0(VALID)
(15:39:44.488) PHY REG[20] = 0x 0(VALID)
(15:39:44.488) PHY REG[21] = 0x 0(VALID)
(15:39:44.488) PHY REG[22] = 0x 100(VALID)
(15:39:44.488) PHY REG[23] = 0x 21(VALID)
(15:39:44.488) PHY REG[24] = 0x 0(VALID)
(15:39:44.488) PHY REG[25] = 0x8021(VALID)
(15:39:44.488) PHY REG[26] = 0x 904(VALID)
(15:39:44.488) PHY REG[27] = 0x 0(VALID)
(15:39:44.488) PHY REG[28] = 0x 0(VALID)
(15:39:44.488) PHY REG[29] = 0x6011(VALID)
(15:39:44.488)
(15:39:46.056) Link connect status: 1<CR>
(15:39:46.056) LwIP initialized, IP: 192.168.1.93
(15:39:46.056) Netif flags: 0x73
(15:39:46.071) PHY REG[0] = 0x1000(VALID)
(15:39:46.071) PHY REG[1] = 0x786D(VALID)
(15:39:46.071) PHY REG[2] = 0x2000(VALID)
(15:39:46.071) PHY REG[3] = 0x5C90(VALID)
(15:39:46.071) PHY REG[4] = 0x 1E1(VALID)
(15:39:46.084) PHY REG[5] = 0xC1E1(VALID)
(15:39:46.084) PHY REG[6] = 0x F(VALID)
(15:39:46.084) PHY REG[7] = 0x2801(VALID)
(15:39:46.084) PHY REG[16] = 0x 15(VALID)
(15:39:46.096) PHY REG[17] = 0x 0(VALID)
(15:39:46.096) PHY REG[18] = 0x2C00(VALID)
(15:39:46.096) PHY REG[19] = 0x 0(VALID)
(15:39:46.096) PHY REG[20] = 0x 0(VALID)
(15:39:46.109) PHY REG[21] = 0x 0(VALID)
(15:39:46.109) PHY REG[22] = 0x 100(VALID)
(15:39:46.109) PHY REG[23] = 0x 21(VALID)
(15:39:46.109) PHY REG[24] = 0x 0(VALID)
(15:39:46.123) PHY REG[25] = 0x8021(VALID)
(15:39:46.123) PHY REG[26] = 0x 904(VALID)
(15:39:46.123) PHY REG[27] = 0x 0(VALID)
(15:39:46.123) PHY REG[28] = 0x 0(VALID)
(15:39:46.137) PHY REG[29] = 0x6011(VALID)
(15:39:46.137)
(15:39:46.137) IP_ADDR : 192.168.1.93<CR>
(15:39:46.137) NET_MASK : 255.255.255.0<CR>
(15:39:46.137) GATEWAY_IP : 192.168.1.254<CR>



0 项奖励
回复
1 回复

441 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @aus_swsol 

You can directly download LPCopen for Keil, which includes a TCP demo within it.

6677.jpg

 

BR

Alice

0 项奖励
回复