How to read RPMSG messages from M4 to A53 on i.MX 8M Mini

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to read RPMSG messages from M4 to A53 on i.MX 8M Mini

ソリューションへジャンプ
1,162件の閲覧回数
latorta
Contributor II

Hi everyone,

I successfully run the echo example on my custom board based on i.MX 8M Mini.

imx_rpmsg_tty module works and I'm able to send some bytes from A53 to M4.

The example anyway should write back the same bytes via the rpmsg_lite_send_nocopy function from M4 to A53.

In fact I find these line with dmesg

[ 3.572174] rpmsg_tty_cb68 65 6c 6c 6f 20 77 6f 72 6c 64 21 hello world!

but if i run this command:

cat /dev/ttyRPMSG

the output is empty.

Of course i can run

echo blabla > /dev/ttyRPMSG

and just like before I find the answer from M4 with dmesg but the cat command gives an empty result.

What's the correct procedure to read the tty?

Thank you!

ラベル(1)
0 件の賞賛
返信
1 解決策
1,148件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

you need to assigns it a file descriptor, writes and reads to int, then closes it, pls refer to the "step 5" 

"https://developer.toradex.com/getting-started/advanced-module-heterogeneous-multicore-processing-hmp..."

 

 

元の投稿で解決策を見る

1 返信
1,149件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

you need to assigns it a file descriptor, writes and reads to int, then closes it, pls refer to the "step 5" 

"https://developer.toradex.com/getting-started/advanced-module-heterogeneous-multicore-processing-hmp..."