cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
quincy1858
Visitor
Visitor
251 Views
Registered: ‎09-09-2020

LWIP echo example fails

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.

quincy1858_0-1606381944590.png
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?

0 Kudos
Reply
0 Replies