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.

PROCESSOR-SDK-AM64X: Documentation/API for PRU IPC Instructions

Part Number: PROCESSOR-SDK-AM64X
Other Parts Discussed in Thread: SYSCONFIG

I'm looking at the AM64x MCU+ SDK documentation for PRU IPC. The example usage section shows open/send/receive calls from the R5F side to the PRU and init/send from the PRU firmware side. There is a link to the API for the R5F function calls, but there are no links to any documentation for the instructions/macros called from the PRU side. Can someone point me to this documentation (m_pru_ipc_init, m_pru_ipc_send, presumably a receive function too?)

  • Hi Ryan,

    You can find detailed information about PRU side IPC related macros in the PRU firmware.

    For all the details, please refer to the file - mcu_plus_sdk_am64x\source\pru_io\firmware\common\pru_ipc_macros.inc

    Regards,

    Nitika

  • Thanks Nitika, that is what I was looking for. Follow up question, I'm playing around with the R5F/PRU projects (empty project, ADC projects) at the moment, is there a way to get CCS to see that location so when I do a file search across my workspace for something like "m_pru_ipc_send" for example it will show up in the search results in CCS? Even better if I can get it to Ctrl+left click through to the macros from the example .asm files. The example projects build ok so it must be including the .inc files correctly.

  • Another follow up question, where are the m_pru_ipc_send interrupt trigger and event numbers (CONFIG_PRU_IPC0_RX_INTR_ENABLE, CONFIG_PRU_IPC0_RX_EVENT) defined? I did not see these in the common folder mentioned earlier or elsewhere in the sdk. Would those same trigger and event values be used when receiving data on the PRU with m_pru_ipc_rcv?

    Thanks,

    Ryan

  • Hi Ryan,

    One more thing, we do have a PRU macros doc with basic information and working details about all the macros - pru_macros_docs/index.html

    But if you wish to look at the code as well, the PRU firmware folder is the place to go.

    Regards,

    Nitika

  • To answer your above questions:

    Even better if I can get it to Ctrl+left click through to the macros from the example .asm files

    1. The scope of this thread does not cover this question. I would like to request you to create a new thread so that it can be routed to the right expert.

    where are the m_pru_ipc_send interrupt trigger and event numbers

    2. You can find them in the sysconfig generated file ti_pru_io_config.inc which is included in main.asm. If you wish to modify these values, you can do so by selecting the different options in PRU-IO > PRU IPC section of sysconfig.

    Would those same trigger and event values be used when receiving data on the PRU with m_pru_ipc_rcv?

    3. Yes, the same registered interrupt can be used with m_pru_ipc_rcv as well.

    Regards,

    Nitika