Accessing my kernel rpmsg buffer from user space

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

Accessing my kernel rpmsg buffer from user space

Jump to solution
524 Views
ababatola
Contributor III

Hi,

I have been able to communicate between my imx8mp MPU and the MCU.  However, I want to access the data in the shared memory from the user space.  Is there an example for this?

I would also like to ask if the imx_rpmsg_pinpong.c device driver can be extended to handle linux Userspace I/O for the communication between the kernel space and the user space.

Thanks

Labels (1)
Tags (3)
0 Kudos
Reply
1 Solution
466 Views
hector_delgado
NXP TechSupport
NXP TechSupport

Hi @ababatola ,

I hope you're doing well! Sorry for the late reply.

I'd recommend taking a look at the rpmsg_lite_str_echo_rtos multicore example found in the i.MX 8M Plus SDK. It's a simple application which allows you to send a message from the Cortex A to the Cortex M and then M4 displays what is received, and echoes back the same message as an acknowledgement. 

You can build and download the SDK from https://mcuxpresso.nxp.com/

Let me know if this works for you.

Best regards,
Hector.

View solution in original post

0 Kudos
Reply
1 Reply
467 Views
hector_delgado
NXP TechSupport
NXP TechSupport

Hi @ababatola ,

I hope you're doing well! Sorry for the late reply.

I'd recommend taking a look at the rpmsg_lite_str_echo_rtos multicore example found in the i.MX 8M Plus SDK. It's a simple application which allows you to send a message from the Cortex A to the Cortex M and then M4 displays what is received, and echoes back the same message as an acknowledgement. 

You can build and download the SDK from https://mcuxpresso.nxp.com/

Let me know if this works for you.

Best regards,
Hector.

0 Kudos
Reply