we are using rpmsg tty example code and we uploaded m core code from sdk rpmsg_lite_str_echo_rtos_imxcm33. now from a core we apply modprobe imx_rpmsg_tty command. after applying this command we can see /dev/ttyRPMSG30. now using echo test > /dev/ttyRPMSG30 command we can send msg to M core. Same time we can see in M core code M core send same msg to A core.
Now we want to read data in A core using c code so how we can do that. is there any example available? we tried using open /dev/ttyRPMSG30 port and used simple read command but when we do that we are getting some garbage data in m core side.
Hi @dhruvinrajpura!
Thank you for contacting NXP Support!
Unfortunately we don´t have examples using C in A core, but you can open the device /dev/ttyRPMSG30 with fopen in c to read all data received.
also you can read the data received from M core using:
cat /dev/ttyRPMSG30
Best Regards!
Chavira