This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: RPMsg code location

Part Number: AM5728

Dear TI,

I'm trying to locate the ARM half of the sample you provide under ti/ti-processor-sdk-...x-evm-04.00.00.04/example-applications/pru-icss-5.1.0

PRU-Package-v5.0-Manifest.html shows at the bottom that the RPMsgPRU Linux Driver should be in some location called /patches/

So it's a bit unclear where you have the matching Linux side/ARM side code to communicate with the PRU rpmsg.

If you could direct me to where you have that sample code, and any related documentation to the rpMSG for the ARM side.  I think I have the documentation for the PRU side.

  • Hello Rob,

    To see an example of a kernel module that can communicate with a PRU core through RPMsg, check out LAB 5: RPMsg Communication between ARM and PRU of the PRU Hands-On Labs. This example uses ARM code from /ti-processor-sdk-linux-.../board-support/linux-.../samples/rpmsg/rpmsg_client_sample.c 

    The entire process of RPMsg communication is covered in the PRU-ICSS RemoteProc and RPMsg wiki. You can mentally replace "mailbox" throughout the wiki with "interrupt", as our sample code uses interrupts. The RPMsg Quick Start Guide may have some useful information.

    Regards, 

    Nick

  • using the PRU hands on lab info in lab 5 it appears the model we wish is the user space one. This leads to rpmsg_pru_user_space_echo.c sample code. Where will I find a more detailed description of the open/read/write functions I see in this sample?
  • Hello Rob,

    We define how the PRU character device responds to the standard Linux file operations (open, read, write, etc) in /ti-processor-sdk-linux-.../board-support/linux-.../drivers/rpmsg/rpmsg_pru.c

    The rpmsg_pru_fops structure in that file tells you which functions in rpmsg_pru.c map to which file operations.

    Regards,
    Nick
  • Hello Rob,

    I'm marking this resolved. Please let us know if you have any more questions!

    Regards,
    Nick