[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Raw TCP - PBuf segment not decreasing

From: LRA_
Subject: Re: [lwip-users] Raw TCP - PBuf segment not decreasing
Date: Sat, 23 Mar 2019 07:58:58 -0700 (MST)

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
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

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]