RPMSG-LITE Hangs in RL_ASSERT

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

RPMSG-LITE Hangs in RL_ASSERT

1,561件の閲覧回数
georgefff
Contributor II

Hi everyone,
 In rpmsg_lite_release_rx_buffer() function there is a RL_ASSERT macro to expect a buffer pointer value inside a range, but...From the master side in Linux, these buffers are allocated using dma_alloc_coherent so a virtual address is expected which does not match what the RL_ASSERT macro expects, therefore my program hangs there.
I'm using a iMX7D with these configuration for the rpmsg:
DT:
&rpmsg{
vdev-nums = <1>;
reg = <0xbfff0000 0x80000>;
status = "okay";
};
RPMSG-LITE
#define BOARD_SHARED_MEMORY_BASE (void *)0xBFFF0000
#define RL_BUFFER_COUNT (256)
#define RL_BUFFER_PAYLOAD_SIZE (496)

With these parameters, when i receive something from the master side, the rx buffer addr is at 0xAA... and RL_ASSERT triggers.
Any ideas? Thanks in advance

ラベル(2)
タグ(3)
0 件の賞賛
返信
1 返信

1,378件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi George

for rpmsg porting may be useful to check i.MX6SX M4 MPU Settings For RPMSG document

https://community.nxp.com/servlet/JiveServlet/download/335198-15-431136/i.MX6SX_M4_MPU_Settings_For_... 

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

0 件の賞賛
返信