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.

AM3358: PRU and pru-software-support-package Install

Part Number: AM3358

Hello,

I installed the pru-software-support-package from TI's git repo online. 

...

I tried to use make to install it. It seems there is an archive file or something in the way.

...

bin examples include labs lib Makefile pru_cape PRU-Package-v6.1-Manifest.html ReadMe.txt
debian@beaglebone:~/PRU/pru-software-support-package$ make
make[1]: Entering directory '/home/debian/PRU/pru-software-support-package/examples'
make[2]: Entering directory '/home/debian/PRU/pru-software-support-package/examples/am335x'
make[3]: Entering directory '/home/debian/PRU/pru-software-support-package/examples/am335x/PRU_access_const_table'

************************************************************
Building project: PRU_access_const_table

Building file: PRU_access_const_table.c
Invoking: PRU Compiler
/usr/share/ti/cgt-pru/bin/bin/clpru --include_path=/usr/share/ti/cgt-pru/bin/include --include_path=../../../include --include_path=../../../include/am335x -v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=gen --pp_directory=gen -ppd -ppa -fe gen/PRU_access_const_table.object PRU_access_const_table.c
make[3]: /usr/share/ti/cgt-pru/bin/bin/clpru: Command not found
make[3]: *** [Makefile:78: gen/PRU_access_const_table.object] Error 127
make[3]: Leaving directory '/home/debian/PRU/pru-software-support-package/examples/am335x/PRU_access_const_table'
make[2]: *** [Makefile:7: PRU_access_const_table] Error 2
make[2]: Leaving directory '/home/debian/PRU/pru-software-support-package/examples/am335x'
make[1]: *** [Makefile:6: am335x] Error 2
make[1]: Leaving directory '/home/debian/PRU/pru-software-support-package/examples'
make: *** [Makefile:6: examples] Error 2

...

So, the archived file is /bin/bin/ but the clpru is located at $HOME/PRU/pru-software-support-package/bin/clpru.

I have tried some different steps so far. I looked in different files but it seems that these files are listing little to no info. in them, i.e. the ReadMe.md files.

  • Hello,

    1) Please confirm the version of PRU SW Support Package you are using. When I tested on v5.7, the example folders built as expected (though there were errors related to the pru_cape folder because I did not set ARM_CGT). Note that I was building on a Linux PC rather than the AM335x itself.

    2) Did you make sure to download the PRU code generation tool (CGT) from this link and export PRU_CGT=/path/to/pru_cgt before doing the make?

    3) are you trying to build a specific example? You can also run make from inside a specific project, like examples/am335x/PRU_gpioToggle/

    Regards,

    Nick

  • Hello,

    Sorry for all this hit and miss here. I keep erasing more ideas and posts here. Please forgive me.

    So...

    debian@beaglebone:~/pru-software-support-package/examples/am335x/PRU_Halt/gen$ ls
    main.object  main.pp  PRU_Halt.map  PRU_Halt.out
    debian@beaglebone:~/pru-software-support-package/examples/am335x/PRU_Halt/gen$

    I am not completely sure what to do w/ the .out file here, i.e. PRU_Halt.out. I know these are just building blocks and there is not a real answer with these PRU examples.

    Seth

    P.S. But...this is what I did: 

    1) Install the armhf PRU_CGT on the WSL2 computer. Then, compile it into a specified folder.

    2) sftp the files to the ARM am335x (BBB).

    3) Then, git clone the repo. for PRU SW Support Package

    4) export PRU_CGT=/home/debian/usr/bin/

    5) Then, get into /examples/am335x/ and run make

    Should I install the files or run as is?

  • Hello Seth,

    the .out file is a binary that you can load into the PRU. I am not sure whether debian uses the Linux RemoteProc driver like the TI Linux release in the Linux SDKs. You can find documentation about loading PRUs with the RemoteProc driver in our SDK documentation here:
    https://software-dl.ti.com/processor-sdk-linux/esd/docs/07_03_00_005/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/RemoteProc_and_RPMsg.html

    Regards,

    Nick