Hello Everyone,
We have used TMS5703137CGWTMEP Microcontroller in our design. and ETHERNET UDP protocol is used with LWIP library, but we are facing some issue while receiving packets from controller to pc,
without wireshark application, the PC side UDP packets are not receiving, when we open wire shark, packets are received from controller in the PC side.
phy : DP83848MPHP
//UDP CODE
uint8 emacAddress[6U] = {0x00U, 0x08U, 0xEEU, 0x03U, 0xA6U, 0x6CU};
uint32 emacPhyAddress = 1U;
lwIPInit(0, emacAddress, 0xA2C0251F, 0Xffff0000, 0, IPADDR_USE_STATIC);
IntMasterIRQEnable();
_enable_FIQ();
for(i=0;i<1454;i++)
data[i]=i;
p = pbuf_alloc(PBUF_IP, UDP_HLEN, PBUF_RAM);
p->next=0;
p->len=256;
p->tot_len=256;
p->payload = (void *)data;
ip_src.addr = 0xA2C0251F; //162.192.37.31 controller ip
ipaddrsrccpy= ip_src.addr;
ip_des.addr = 0xA2C0251E;//162.192.37.30 pc ip
net_mask.addr=0xFFFF0000;//255.255.0.0
gw_addr.addr=0;
pcb = udp_new();
udp_recv(pcb, LocatorReceive, NULL);
error = udp_bind(pcb,&ip_src,60000);
error = udp_connect(pcb,&ip_des,60001);
Can anybody please explain me how to solve the issue.
attached MSP430FR5989-EP ckt in our design for reference.