Hello, I have rpmsg running in TCM memory (IMX7). But when I move it to OCRAm it does not work. What do I have to do to make it work.

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

Hello, I have rpmsg running in TCM memory (IMX7). But when I move it to OCRAm it does not work. What do I have to do to make it work.

1,278 次查看
nicovenderbosch
Contributor I

On the M4 it says: Name service handshake is done, M4 has setup a rpmsg channel [0 ---> 1024], so far OK.

On the A7 side:

Waiting MU transmit buffer empty timeout!
ugh, imx_mu_rpmsg_send() failed: -5
imx_rpmsg_tty rpmsg0: virtqueue_add_outbuf failed: -5
imx_rpmsg_tty rpmsg0: rpmsg_send failed: -5

I think it means that the M4 does not read the messages.

Hi,

We got it working, there were two issues:

1. We where wrong footed by some remarks in the device tree and therefore changed our linker-file.Now we are using the original linker-file again.

2. The heap was to small, the was not enough space for the communication queues. When moving to ocram we added extra code which resulted in using extra heap space.

Nico

标签 (1)
0 项奖励
回复
1 回复

780 次查看
igorpadykov
NXP Employee
NXP Employee

Hi nico

one can try to debug it using sources in linux/drivers/rpmsg and

linux/arch/arm/mach-imx/imx_rpmsg.c, mu.c with help AN4553 Using

Open Source Debugging Tools for Linux on i.MX Processors
http://www.nxp.com/assets/documents/data/en/application-notes/AN4553.pdf

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复