I have spent a lot of time building a TCP server based application which initially used this example. My strong suggestion is to check the stack sizes of the threads lwip uses. MX Cube may not be making them large enough and this can manifest as hard...