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.

2837xD的双核通讯问题

您好,请教些问题,

使用双核IPC通讯时发现一个问题,当CPU2使用的内存超过2K时,使用memcpy无法取得共享内存的地址:

#define CPU02TOCPU01_PASSMSG    0x03F800

const Uint16 *puMsgRam = (void *) CPU02TOCPU01_PASSMSG;

memcpy((void *)puMsgRam, (void *)&regData, sizeof(regData));

如果定义了一个全局变量,例如:volatile Uint16 arInt[2048];

在跟踪调试时发现puMsgRam的地址就变成了0x00000000

如果全局变量的长度小一点如volatile Uint16 arInt[512],在跟踪时地址指针就是正常的。

请教如何解决这个问题?

谢谢。