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.

[参考译文] TMS320F28388D:IPC_readMessageFromQueue 为空、消息队列未放置在共享 RAM 中。

Guru**** 2808485 points

Other Parts Discussed in Thread: C2000WARE, SYSCONFIG

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1604432/tms320f28388d-ipc_readmessagefromqueue-empty-and-messagequeue-not-placed-in-shared-ram

器件型号: TMS320F28388D
Thread 中讨论的其他器件: C2000WARESysConfig

您好:

我在使用消息队列的 IPC 示例时遇到问题。 我正在使用 C2000Ware_5_04_00_00

我尝试使用 ipc_sendMessageToQueue 将消息从 CPU1 发送到 cm。 正确生成 cm 上的 Rx IRQ、但调用 IPC_readMessageFromQueue RxMsg 数据后为空。  

我已经检查了两个处理器和 CM 上的消息队列地址是否正常(位于共享 RAM 0x2000E198 中)、但在 CPU1 中、消息队列位于 0xA5A6 中、而不是位于共享 RAM 中。

 

我已在 CPU1 中定义了以下变量

IPC_MessageQueue_t 消息队列;
IPC_Message_t   TxMsg、RxMsg;

 作为全局变量。 IPC_MessageQueue_t 消息队列在 CM 中定义为全局队列的方式相同。

是不是?“ 是否应包括用于强制共享 RAM 中的消息队列的 pragma?

此致、

分离器