no read function in rpmsg

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

no read function in rpmsg

909件の閲覧回数
jingfeng
Contributor I

I run the rpmsg example from NXP SDK .

 

from the m4 core ,there is a "result = rpmsg_lite_send_nocopy(my_rpmsg, my_ept, remote_addr, tx_buf, len);" funtion to send msg to A53 core.

 

from A53 kernel file imx_rpmsg_tty.c, there is no read rpmsg funtion.

static const struct tty_operations imxrpmsgtty_ops = {
.install = rpmsgtty_install,
.open = rpmsgtty_open,
.close = rpmsgtty_close,
.write = rpmsgtty_write,
.write_room = rpmsgtty_write_room,
};
 
how to make A53 read rpmsg from m4 basing on imx_rpmsg_tty driver?
ラベル(1)
0 件の賞賛
返信
1 返信

853件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @jingfeng,

I hope you are doing well.

there is no read() operation available in tty_operations struct & polling function is not implemented in the demo driver.

A53 can read rpmsg from m4 using  .callback function rpmsg_tty_cb.

callback function is invoked when a message is received on the channel

In rpmsg_tty_cb , void *data variable contains the msg received from M4 SDK side.

One can also refer to imx_rpmsg_pingpong.c driver for reference.

I hope it helps!

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信