Tool/software: Code Composer Studio
I write application that run on the M4 CPU, the code is based on the project example tcpEchoF2838X.
I send and receive data ok from some PC application in a loop till suddenly ( after few hours) it stop the M4 seems to be dead ( One of the thread is running a counter which is frizzed).
Need to wake it up by device reset the device or reset it from CPU1 ( by command SysCtl_controlCMReset ).
I change the buffer size to 1024 ( original was 2048 ), is this may be the root cause of the problem ? Now I return it back to 2048 and the test is running again .....
Here is the relevant code that set the sizes (I am not sure if it is the reason for the M4 fail)
static void initTcp(void *hCfg)
{
int transmitBufSize = 2048;//1024;
int receiveBufSize = 2048;//1024;
int receiveBufLimit = 2048;//1024;
CfgAddEntry(hCfg, CFGTAG_IP, CFGITEM_IP_SOCKTCPTXBUF, CFG_ADDMODE_UNIQUE,
sizeof(uint32_t), (unsigned char *)&transmitBufSize, NULL);
CfgAddEntry(hCfg, CFGTAG_IP, CFGITEM_IP_SOCKTCPRXBUF, CFG_ADDMODE_UNIQUE,
sizeof(uint32_t), (unsigned char *)&receiveBufSize, NULL);
CfgAddEntry(hCfg, CFGTAG_IP, CFGITEM_IP_SOCKTCPRXLIMIT, CFG_ADDMODE_UNIQUE,
sizeof(uint32_t), (unsigned char *)&receiveBufLimit, NULL);
}
Is someone have idea what can be the problem ?
Avraham