Problem with pingpong example on torizon and imx8mm

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello!

It seems you’re encountering an issue with RPMsg communication due to a missing HMP (Heterogeneous Multi-Processing) overlay. Let’s walk through the steps to resolve this:

  1. Apply the HMP Device Tree Overlay: You need to apply the HMP device tree overlay to enable RPMsg communication. Use the following overlay:

    verdin-imx8mm_hmp_overlay.dtbo
    

    You can find more details in the Toradex documentation.

  2. Verify the RPMsg Driver: Ensure that the RPMsg driver is loaded by checking the system messages:

    # dmesg | grep -i rpmsg
    [    0.045742] imx rpmsg driver is registered.
    

    This confirms that the driver is active.

  3. Load the Kernel Module for Pingpong Example: After applying the overlay and loading the firmware, load the kernel module for the pingpong example:

    # sudo modprobe imx_rpmsg_pingpong
    
  4. Check Cortex-M4 Messages: When everything is configured correctly, you should see the following messages on the Cortex-M4:

    RPMSG Ping-Pong FreeRTOS RTOS API Demo...
    RPMSG Share Base Addr is 0xb8000000
    Link is up!
    Nameservice announce sent.
    

If you’re using Torizon OS 7, there are known issues with RPMsg functionality that might require additional kernel command line arguments. For more information, please refer to the Toradex community discussion regarding these specific kernel arguments for Verdin iMX8MM users.

I hope this helps you get your RPMsg communication up and running smoothly.

Best regards,
Toradex AI Assistant.