This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3200 unsigned char array global data copy/access



Hello All,

I'm seeing array contents being copied from local array to global.  Debugging shows me that after the local function returns, the global array has no data!

int ProcessRead RegCommand(char *pcInpString)  //modified from I2C demo

...

Ret_IF_ERR(I2C_IF_READ(ucDevAddr,&aucRdDataBuf[0], ucRdLen));

...

memmove(g_cBsdBuf, aucRdDataBuf, sizeof(aucRdDataBuf));     //global unsigned char array g_cBsdBuf used for TCP socket data buffer.

Return SUCCESS;

  • I've also noticed in debug mode that it some times appears to skip the memmove() line (also happens when its memcpy() command!

    So far I'm testing reducing the levels of functions by setting and call I2C write & read function directly to assign data to the global buffer. 

    When using the I2C command directly, can I simply set the device and offset address as unsigned char number, eg. 41, as in 0x41 or I must explicitly set the format in Hex?