I am using the RCM6700 and trying to send 10100 bytes through tcpip. In a local function, I created a local buffer array which size is 10100 bytes:
1) When I try to clear this buffer with using
memset(temptcpbuf, 0x00, sizeof(temptcpbuf));
the processor is freeze and report timeout (when running in debug mode).
Can I create a buffer size this big?
2) I try to read the data from a remote device through I2C:
I2CRead(ADDRESS, 0, temptcpbuf, 10100);
Also the processor is freeze and report timeout.
The I2C timeout is 10ms. Tried to set longer to 40ms but still has the issue.
When I reduce the buffer size to 8000, all the issue seems gone.
Can you suggest a solution for this?