RPMSG Code in A core - IMX8ULP-EVK9

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

RPMSG Code in A core - IMX8ULP-EVK9

308 次查看
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 项奖励
回复
1 回复

290 次查看
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 项奖励
回复