|
From: | Amit Rahman |
Subject: | [lwip-users] LWIP+ FreeRTOS stack crash: pbuf chain keeps increase, not enough space for new header size |
Date: | Fri, 19 Apr 2024 19:23:19 -0400 |
I am working on a project using an STM32 Nucleo H563ZI board with lwIP and FreeRTOS, and I am facing some issues with the stability of the network stack.
After running for a certain period (around 2-3 minutes), the board seems to crash or freeze, and I am looking for guidance on how to troubleshoot and resolve this problem.
Here's a summary of my setup and findings:
My guess is that upon receipt in ARP probe response from my computer to the board and/or the repeated ping requests from my computer, the stack eventually runs out of memory, and the pbuf chain length keeps increasing, however the issue with deallocating pbufs somewhere its not apparent to me.
I suspect that there might be a misconfiguration in the lwIP setup or memory management, but I am unsure how to proceed with debugging and resolving the issue.
I would greatly appreciate any guidance or suggestions on the following:
I had mostly based my code on the UDP echoserver example https://github.com/STMicroelectronics/stm32h5-classic-coremw-apps/blob/main/Projects/NUCLEO-H563ZI/Applications/LwIP/LwIP_UDP_Echo_Server/Core/Src/main.c
Unfortunately, I don't seem to see what I'm missing.
Thank you in advance for your assistance. I look forward to your insights and recommendations.
udp.c
Description: Binary data
ethernetif.c
Description: Binary data
lwipopts.h
Description: Binary data
lwipopts_freertos.h
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |