Hello Sergio, Sorry for taking long to reply, flu season hasn't been kind.
Nevertheless I did some tests. And you are correct, they are reentrability issues. The periodic interrupt that called tcp_write was higher priority than the ethernet interrupt, set them to the same and it's been working very well. I had it running some tests so far and no issues from the tm4c test code (let's see later trying to use it in the real code). The issue of PBuf segment not decreasing is solved so I guess this can be closed. Like most searches hinted, it was really reentrability issues. For the rest, The port has everything pretty much on the ethernet interrupt. I probably could change it, I hate it being there. The example I based myself on is the raw TCP_Echo. I am not using RTOS because it's an existing project, actually the best supported RTOS is TI-RTOS which doesn't seem to even use LWIP, I prefer FreeRTOS but oh well... Btw, the processor is a 120Mhz ARM-M4 and I am not using DMA (for reference). I have to read more into your answer, the links you provided and the http server example. For now it's rest for me. -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
