Hello supporters,
I currently am trying to make a communication between my board and PC, using LWIP.
I could send data to PC with udp_sendto() and I could figure out data reach my board by checking udp_input(), because of this forum.
But, unfortunately, udp receive is blocking my work.
Following statement I implemented was traced by debugger, then, I noticed call back function I defined was not launching.
pcb = udp_new();
err = udp_bind(pcb,&Src,PORT_NO);
udp_recv(pcb, &my_udp_rx, (void *)0);
^ call back function
err = udp_connect(pcb,&Dst,PORT_NO);
Code directly stepped into,
void
udp_recv(struct udp_pcb *pcb, udp_recv_fn recv, void *recv_arg)
{
pcb->recv = recv; <- here
Hopefully someone suggests what I should check.
Thanks in advance.
Best regards,
Yamai