So im playing arround with the Arty's onboard ethernetport by making use of the LWIP tcp echo server example.
I've editted it to a point were my code makes a copy of the incoming data, and show whats been received to its UART using strcpy spamming the following in the UART poort.

For some reason the echo code locks up when using special chars like , . / + - etc.
It seems to randomly happen when my input string is longer than 4 chars + a special char.
This is what i added in the echo example.
tcp_recved(tpcb,p->len );
// this is what i added
xil_printf("received\n\r");
char incdata[p->len ]; strcpy (incdata, p->payload);
xil_printf(incdata);
What am i doing wrong or forgetting here? why is the code freezing when entering a special char?