STMH743ZI2 - Ethernet with LWIP transmitting, but not receiving
I followed this tutorial and I'm able to transmit UDP packets from my nucleo board to my computer. I've configured the code to use lwIP without freeRTOS.
I'm trying to receive packets on my board over Ethernet by setting up a callback and it never enters the callback even though wireshark shows that packets are being sent. I'm also able to ping the ip address of the nucleo board and get a response. Any thoughts/debugging tips would be helpful!
struct udp_pcb* my_udp = udp_new();
udp_connect(my_udp, &PC_IPADDR, 9000);
printf("Connected to Ethernet.\n\r");
udp_recv(my_udp, UDP_RXCallback, NULL);void UDP_RXCallback(void *arg, struct udp_pcb *upcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
{
printf("in callback\n\r");
/* Free receive pbuf */
pbuf_free(p);
}
