This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I integrated the lwIP stack 1.4.1 with RM48L952 device and although the hdk is initialized with a static IP it does not respond to ping from another machine (it is connected to a router but it does not show up in router clients list).
Thank you,
Best Regards,
Cosmin Briceag
Hi Cosmin,
Is below things gets successful in your application?
PHY ID, PHY Alive Status and PHY Link Status?
And i would also like to know the below things
Which board you are using, is it a TI specific one or custom one?
Which application you are testing (can i get your code)?
--
Thanks & Regards,
Jagadish.
Hello,
void EMAC_LwIP_Main (uint8_t * macAddress) { unsigned int ipAddr; struct in_addr devIPAddress; uint32_t ip_address, ip_gateway, ip_mask; sciInit(); sciDisplayText(sciREGx, txtCRLF, sizeof(txtCRLF)); sciDisplayText(sciREGx, txtTitle, sizeof(txtTitle)); sciDisplayText(sciREGx, txtCRLF, sizeof(txtCRLF)); sciDisplayText(sciREGx, txtTI, sizeof(txtTI)); sciDisplayText(sciREGx, txtCRLF, sizeof(txtCRLF)); #ifdef __little_endian__ sciDisplayText(sciREGx, txtLittleEndian, sizeof(txtLittleEndian)); sciDisplayText(sciREGx, txtCRLF, sizeof(txtCRLF)); #else sciDisplayText(sciREGx, txtBigEndian, sizeof(txtBigEndian)); sciDisplayText(sciREGx, txtCRLF, sizeof(txtCRLF)); #endif /* Initialze the lwIP library, using DHCP.*/ sciDisplayText(sciREGx, txtEnetInit, sizeof(txtEnetInit)); // ipAddr = lwIPInit(0, macAddress, 0, 0, 0, IPADDR_USE_DHCP); /* Uncomment the following if you'd like to assign a static IP address. Change address as required, and uncomment the previous statement. */ ip_address = inet_addr(IPADDR); ip_gateway = inet_addr(GWMASK); ip_mask = inet_addr(NETMASK); ipAddr = lwIPInit(0, macAddress, ip_address, ip_gateway, ip_mask, IPADDR_USE_STATIC); sciDisplayText(sciREGx, (uint8_t*)"..DONE", sizeof("..DONE")); sciDisplayText(sciREGx, txtCRLF, sizeof(txtCRLF)); if (0 == ipAddr) { sciDisplayText(sciREGx, txtCRLF, sizeof(txtCRLF)); sciDisplayText(sciREGx, txtCRLF, sizeof(txtCRLF)); sciDisplayText(sciREGx, txtErrorInit, sizeof(txtErrorInit)); sciDisplayText(sciREGx, txtCRLF, sizeof(txtCRLF)); sciDisplayText(sciREGx, txtCRLF, sizeof(txtCRLF)); } else { /* Convert IP Address to string */ devIPAddress.s_addr = ipAddr; txtIPAddrItoA = (uint8_t *)inet_ntoa(devIPAddress); LocatorConfig(macAddress, "HDK enet_lwip"); /* Initialize the sample httpd server. */ sciDisplayText(sciREGx, (uint8_t*)"Starting Web Server", sizeof("Starting Web Server")); httpd_init(); http_set_ssi_handler(SSIHandler, ssi_tags, SSI_TAGS); http_set_cgi_handlers(cgi_handlers, CGI_HANDLERS); sciDisplayText(sciREGx, (uint8_t*)"..DONE", sizeof("..DONE")); sciDisplayText(sciREGx, txtCRLF, sizeof(txtCRLF)); } }
I do not have an FTDI converter to log messages on my PC but please find below answers to your questions.
[J] PHY ID, PHY Alive Status and PHY Link Status?
[J] Which board you are using, is it a TI specific one or custom one?
I use a custom board with PHY device DP83848MPHPEP
[J] Which application you are testing (can i get your code)?
Although I can send to you my code, the lwIP stack is 1.4.1 from one of TI's links.
Best Regards,
Cosmin
Hi Cosmin,
So looks line PHY is working fine on your end as well.
Can you check if it is going through the case "IP_PROTO_ICMP"(which will be in ip.c file) while sending ping command or not? like the below
--
Thanks & Regards,
Jagadish.
Hi,
Closing the thread because of not hearing back from so long.
--
Thanks & regards,
Jagadish.