Part Number: PROCESSOR-SDK-J721S2
Dear Community and TI support,
I am trying to use the IPC example (ti-rpmsg-char) at Linux side , and write my code at MCU1_0 followed the PDK example (ipc_echo_test.c) . I saw the endpoint at Linux side after I announce at MCU1_0 :
ls -l /sys/bus/virtio/drivers/virtio_rpmsg_bus/virtio0/virtio0.rpmsg_chrdev.-1.83/
total 0
-r--r--r-- 1 root root 4096 Jan 29 00:00 announce
-r--r--r-- 1 root root 4096 Jan 29 00:00 desc
lrwxrwxrwx 1 root root 0 Jan 29 00:00 driver -> ../../../../../../../../../../../bus/rpmsg/drivers/rpmsg_chrdev
-rw-r--r-- 1 root root 4096 Jan 29 00:00 driver_override
-r--r--r-- 1 root root 4096 Jan 29 00:00 dst
-r--r--r-- 1 root root 4096 Jan 29 00:00 modalias
-r--r--r-- 1 root root 4096 Jan 29 00:00 name
drwxr-xr-x 2 root root 0 Jan 29 00:00 power
drwxr-xr-x 3 root root 0 Jan 29 00:00 rpmsg
-r--r--r-- 1 root root 4096 Jan 29 00:00 src
lrwxrwxrwx 1 root root 0 Jan 29 00:00 subsystem -> ../../../../../../../../../../../bus/rpmsg
-rw-r--r-- 1 root root 4096 Jan 29 00:00 uevent
I use the RPMessage_recvNb() at MCU1_0 side , but no message received. Here is the log from rpmsg_char_simple :
./rpmsg_char_simple -r 0 -p 83 -d rpmsg_chrdev
Created endpt device rpmsg-char-0-709, fd = 3 port = 1026
Exchanging 100 messages with rpmsg device ti.ipc4.ping-pong on rproc id 0 ...
Sending message #0: hello there 0!
Can't write to rpmsg endpt device
: Unknown error 512
send_msg failed for iteration 0, ret = -1
TEST STATUS: PASSED
Where the problem may be ?