RPMSG-LITE Hangs in RL_ASSERT

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RPMSG-LITE Hangs in RL_ASSERT

653 Views
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

Labels (2)
Tags (3)
0 Kudos
1 Reply

470 Views
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 Kudos