Hi,
I am working on IPC between r5f core and A72 core.
There is no /dev entry for rpmsg.
I used rpmsg char helper library to enable IPC in user space.
The rpmsg char helper library API "rproc_device_find_for_name()" is successfull. "rproc_device_find_chrdev_by_remote_port()" requires remote port number, Is there a way by which I can get to remote port from A72?
what is the default remote port for "r5f-mcu-core-0" ?
Below is code snippet :
#define APP_IPC_RPMSG_SERVICE_NAME "rpmsg"
/** \brief RPMsg Port used for 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 = NULL;
int cmd_type = 0;
device = rproc_device_find_for_name("r5f-mcu-core-0");
if (!device) {
printf("Error: could not find rproc_device for name: \n");
return -1;
}
char_device = rproc_device_find_chrdev_by_remote_port(device, remote_port);
if (!char_device) {
printf("Error: could not find char device by remote port: %d\n", remote_port);
ret = -1;
goto RELEASE;
}
Thanks in Advance