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.

BEAGL-BONE-BLACK: PRU0 to ARM - RPMSG

Part Number: BEAGL-BONE-BLACK

Hello,

I am attempting to implement interrupt-driven communication between the ARM and PRU on my BeagleBone Black using the RPMsg protocol. Following the documentation provided by TI, I tried executing the example code located at /usr/lib/ti/pru-software-support-package-v6.0/examples/am335x/PRU_RPMsg_Echo_Interrupt0 However, After setting environment variable PRU_CGT and creating link file ln -s /usr/bin/ /usr/share/ti/cgt-pru/bin .I encountered the following error:

debian@BeagleBone:/usr/lib/ti/pru-software-support-package-v6.0/examples/am335x/PRU_RPMsg_Echo_Interrupt0$ sudo make
Makefile:23: *** 
*******************************************************************************
PRU_CGT environment variable is not set. For example:
(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.3.3
(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.3.3
(ARM Linux*) export PRU_CGT=/usr/share/ti/cgt-pru

*ARM Linux also needs to create a symbolic link to the /usr/bin/ directory in
order to use the same Makefile
(ARM Linux) ln -s /usr/bin/ /usr/share/ti/cgt-pru/bin

The latest PRU CGT can be found at www.ti.com/.../PRU-CGT or in Code
Composer Studio (CCS) App Center.
*******************************************************************************
.  Stop.
debian@BeagleBone:/$ printenv PRU_CGT
/usr/share/ti/cgt-pru
debian@BeagleBone:/$ sudo ln -s /usr/bin/ /usr/share/ti/cgt-pru/bin
ln: failed to create symbolic link '/usr/share/ti/cgt-pru/bin/bin': File exists

Also, I could not find rpmsg_pru30 and rpmsg_pru31 device files in the /dev/ dir. How to resolve this issue.

DEBIAN-Version

debian@BeagleBone:/$ uname -a
Linux BeagleBone 5.10.168-ti-r71 #1bullseye SMP PREEMPT Fri Sep 1 04:05:07 UTC 2023 armv7l GNU/Linux

Aji

  • Hello Aji,

    Did you check to see if you actually have the PRU CGT installed in your filesystem under /usr/share/ti/cgt-pru? If there isn't a copy of the PRU CGT there, it won't build.

    I haven't tried building the PSSP on an EVM for multiple years now, so it is definitely possible that the instructions are out-of-date. Please keep us updated once you get it working, and I will update the PSSP based on your findings (if needed).

    Regards,

    Nick

  • Hello Nick ,

    Thanks for your response. The installation of PRU CGT has been successful, and it is now functioning properly when invoked with the  sudo -E make command.

    Regards, 

    Aji.