Hello,
I am implementing logic to send messages using the lwIP TCP/IP stack, and I have encountered an issue.
Here is my current situation:
- The S32K344 MCU is connected to a PC via UDP.
- The MCU sends data to the PC.
- During data transmission, a memory-related issue occurs (mem_free: illegal memory: non-linked: double free).
- The issue sometimes happens in TxNotification.
- Alternatively, it occurs in the send_udp_data function that I implemented.
The attached test.c source file is based on the S32K344 TCP/IP 1.0.3 sample code, with the addition of the send_udp_data function.
Could you please review my UDP transmission code and let me know if I have implemented anything incorrectly?