2024-11-14 01:31 AM
Hello,
I'm using the STM32F767ZITx MCU and the lwIP library to transmit and receive UDP packets every 1 ms.
Everything works fine but sometimes, after the ARP table has expired, UDP packets are no longer transmitted for several seconds even though my STM has received a response to its ARP request (as seen with Wireshark).
What solutions are there to avoid this scenario? Is this normal lwIP behavior?
Thanks for your help.
2024-11-14 01:40 AM
Have you enabled LwIP diagnostics, and/or added your own diagnostics, to see what's going on - in particular, what changes when this problem occurs?
2024-11-14 02:38 AM
With my current system, I don't have a UART link available, I'm not on a proto board but a custom one.
What I'm seeing is that when I stop sending frames, the ARP table is empty, even though I'm receiving replies to ARP requests. It's as if it doesn't process replies.
2024-11-14 03:08 AM
@Armageddon wrote:With my current system, I don't have a UART link available
That's a major oversight!
Can you use SWO instead?
Can you reproduce the problem on a board which does have suitable access?
2024-11-14 03:30 AM
You don't have all the ins and outs to tell me it's an oversight.
We have our constraints, and that's the way it's done. It would have been simpler to have it, but I'll do it with the classic probe debugging.
If I really can't do it, I'll consider moving my program to a proto to find a solution more easily.
I may have an idea, given that the system keeps receiving frames every 5ms, maybe the input buffers are saturated.
Thanks for your feedback, I'll keep you posted.