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 https://www.ti.com/tool/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_pru0 and rpmsg_pru1 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