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.

[参考译文] PROCESSOR-SDK-DRA8X:使用 rpmsg char helper 库的 IPC

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/936608/processor-sdk-dra8x-ipc-using-rpmsg-char-helper-library

器件型号:PROCESSOR-SDK-DRA8X

您好!

我正在研发 r5f 内核和 A72内核之间的 IPC。

rpmsg 没有/dev/dev 条目。  

我使用 rpmsg char helper 库在用户空间中启用 IPC。

rpmsg char 帮助程序库 API "rproc_device_find_for_name()"已成功。  "rproc_device_find_chrdev_by_remote_port()"需要远程端口号,我是否可以通过某种方式从 A72访问远程端口?

"r5f-mcu-core-0"的默认远程端口是什么 ?

下面是代码片段:


#define APP_IPC_RPMSG_SERVICE_NAME "rpmsg"

/**\brief RPMsg 端口,用于 Linux IPC */
#define BSP_IPC_RPMSG_PORT_ID (13U)


char * local_name = APP_IPC_RPMSG_SERVICE_NAME;
int remote_port = BSP_IPC_RPMSG_PORT_ID;
char * endpt_arg_dev_name =空;
int cmd_type = 0;

器件= rproc_device_find_for_name ("r5f-mcu-core-0");
如果(!device){
printf ("错误:找不到名称的 rproc_device:\n");
返回-1;

char_device = rproc_device_find_chrdev_by_remote_port (device、remote_port);
if (!char_device){
printf ("错误:无法通过远程端口找到 char 设备:%d\n"、REMOTE_PORT);
RET =-1;
转至释放;

提前感谢

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

    您好、Archana、

    >>"R5f-MCU-core-0"的默认远程端口是什么 ?

    这取决于 您从运行在固件"r5f-mcu-core-0"上的 IPC 应用程序创建和发布的端点。

    SDK 中的 IPC 示例使用"13"作为端点。

    请参阅以下有关 rpmsg_char helper 库的文档:

    software-dl.ti.com/.../developer_notes_ipc.html

    谢谢、此致、

    Sunita。

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

    您好、Archana、

    如果上述解释/详细信息能解决您的问题、请解决 TT。

    谢谢、此致、

    Sunita。