1745199_en-US

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

1745199_en-US

1745199_en-US

Accessing my kernel rpmsg buffer from user space

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

i.MX 8M | i.MX 8M Mini | i.MX 8M NanoRe: Accessing my kernel rpmsg buffer from user spaceHi,
I am also looking at the same issue. The example you provided works with the kernel module.
However, I am actually looking for a example userspace application. Could you provide a sample C program i can run on the linux side within userspace.
Thanks!
Re: Accessing my kernel rpmsg buffer from user space

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.

Tags (1)
No ratings
Version history
Last update:
yesterday
Updated by: