In this tutorial, we set up a UDP Server on STM32 using the lwIP Raw API. We go through the UDP control block setup, the receive callback, and how to drive the lwIP stack in the main loop — all without an RTOS. By the end, the server receives data from a PC client and sends a reply back over Ethernet.
