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.

TMDSCNCD28388D: C2000 IPC

Part Number: TMDSCNCD28388D
Other Parts Discussed in Thread: C2000WARE

是否可以将ethernet_c28x_config工程中的packetData[PACKET_LENGTH]数组换成自己的数组send_buf

,然后通过 IPC_sendCommand函数发送到CM4。然后在enet_lwip的工程下,利用 IPC_readCommand函数接收数组send_buf中的数据呢?

想实现这一过程,我需要修改哪些地方呢,有什么注意点吗?

特来请教

感谢

  • 请您先参考一下

    https://software-dl.ti.com/C2000/docs/C2000_Multicore_Development_User_Guide/examples.html#exercise-2-ipc-example 

    请注意

    CM内核无法访问GSRAM。有专用的MSG RAM用于在内核之间共享数据-CPU1TOCPU2MSGRAM,CPU2TOCPU1MSGRAM,CPU1TOCMRAM,CPU2TOCMRAM,CMTOCPU1RAM,CMTOCPU2RAM

    您可以使用这些RAM将数据从一个内核发送到另一个内核。IPC_sendCommand函数配置IPC模块中的命令寄存器,并在远程核心上触发一个中断(如果在远程核心上启用了中断),表明该命令可用。该命令包括3个32位字。如果要发送大量数据,则可以将数据放入MSGRAM中,并使用IPC_sendCommand共享数据的起始地址。由于这些RAM的地址在CPU和CM中不同,因此该功能会自动更正地址参数。

    C2000ware中有一个可用的示例对此进行了演示

    <C2000ware> \ driverlib \ f2838x \ examples \ c28x_cm \ ipc \ ipc_ex1_basic_c28x1