A bit more info about where it stops.
Any help where to look next appreciated!
I paused the application in the
debugger during the extensive (~1.5 second) pause:
- tcp thread is waiting here:
/* wait for a message, timeouts are
processed while waiting */
TCPIP_MBOX_FETCH(&tcpip_mbox, (void **)&msg);
that's waiting with a 250msec timeout in:
res = sys_arch_mbox_fetch(mbox, msg, sleeptime);
- application thread is waiting inside lwip_netconn_do_write at
That's called by tcpip_send_msg_wait_sem here:
- the ethernetif_input thread is
waiting in if (osSemaphoreWait( s_xSemaphore,
This is an ST-provided module that just waits for packets and
dispatches them to netif->input
Thanks in advance for any pointers,
Best Regards, Dave
On 3/1/2019 3:43 PM, Dave Nadler wrote:
Hi UAZ - I'm using ST not NXP, so
different driver and LwIP glue layer.
Can you tell *which* systick did not count (ie ARM core or some
Can you see where in code its stuck?
I'm using sockets interface and TCP for my server.
I'll add an "LED blinky" thread to ensure other threads are
running OK in my case.
If I could figure out how to
breakpoint the code that's pausing I could probably sort this...
Best Regards, Dave
PS: Hope to work on this a bit more
next week. Will stick with sockets API.
Raw API would make coding harder in my case.
On 2/28/2019 9:29 PM, uaz wrote:
Stuck in tcpip_thread() of tcpip.c file, or my own udp server thread.
I'm not sure if 'stuck' is the exact description, but it is spending too
much time in the above threads without switching or interrupts.
For now, I'm unable to find the exact location of the freezing.
If your other threads are able to run normally during the pause, it means
that our problem is not the same.
Below is my Segger trace for your reference:
During the pause, systick which is supposed to trigger every 1ms did not
On 2/28/2019 6:44 PM, uaz wrote:
Your problem sounds quite similar to me except mine is completely stucked.
Have you checked your freeRTOS trace and determine where your application
stops sending packets or freezes in any thread?
I verified mine using Segger Systemview and can see clearly that it
pauses/freezes in certain thread for very long time without any systick or
I'll be trying RAW API since I'm unable to debug this issue after spending
Btw, I'm using NXP mcu with their supplied lwip and freertos ports (Upgraded
to the latest version myself but the driver layer remains the same)
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html
lwip-users mailing list
Dave Nadler, USA East Coast voice (978) 263-0097, address@hidden, Skype