Part Number: TM4C129XNCZAD
Hello,
I am working on an application based on ARM TM4C129XNCZAD that handles the creation of UDP sockets and receiving data over them using the TI NDK Stack.
I have an issue where the received data size is around 3k bytes but the data does not get to the application layer while smaller data size (Up to 1992 bytes) work with no problems. I believe this behavior requires modification of the Rx buffer size and limits in the NDK stack configurations.
Based on NDK User guide and Reference guide, I added the following configurations but the issue still persists:
/* During IP Stack configuration at startup */
s32ReceiveBufSize = 3000;
(void)CfgAddEntry(hCfgIpAddr, CFGTAG_IP, CFGITEM_IP_SOCKUDPRXLIMIT, CFG_ADDMODE_UNIQUE, (INT32S)sizeof(INT32U), (INT8U *)&s32ReceiveBufSize, STD_NULL);
/* During the creation of UDP Socket */
u32ReceiveBuffSize = 3000;
(void)setsockopt(objSocketHandler, SOL_SOCKET, SO_RCVBUF, &u32ReceiveBuffSize, (INT32S)sizeof(u32ReceiveBuffSize));
Please note that the application initializes the IP stack manually and does not depend on the configuration (.cfg) file.
Find attached an image of the captured wireshark stream where the issue happens with packet number 4924. My hardware board IP address is 10.1.0.53.
Your guidance on how to resolve this issue would be appreciated.
Thanks.