RPMSG Code in A core - IMX8ULP-EVK9

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RPMSG Code in A core - IMX8ULP-EVK9

377 Views
dhruvinrajpura
Contributor II

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.

0 Kudos
Reply
1 Reply

359 Views
Chavira
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply