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 和 PRU 软件支持包安装

Guru**** 2546020 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1009267/am3358-pru-and-pru-software-support-package-install

器件型号:AM3358

您好!

我在线安装了 TI 的 git repo 提供的 PRU-software-support-package。  

(笑声)

我尝试使用 make 来安装它。 它似乎有一个存档文件或其他内容。

(笑声)

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.

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    1) 1)请确认您正在使用的 PRU 软件支持包的版本。 当我在 v5.7上进行测试时、示例文件夹按预期构建(尽管由于我没有设置 ARM_CGT、因此存在与 PRU_Cape 文件夹相关的错误)。 请注意、我构建的是 Linux PC、而不是 AM335x 本身。

    2) 2)  在执行 make 操作之前、是否确保从此链接下载 PRU 代码生成工具(CGT)并导出 PRU_CGT=/path/to/pru_cgt?

    3) 3)您是否正在尝试构建特定示例? 您还可以从特定项目内部运行 make、如 examples/AM335x/PRU_gpioToggle/

    此致、

    Nick

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    很抱歉错过了这里。 我不断删除这里的更多想法和帖子。 请原谅我。

    所以...

    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$

    我不能完全确定如何处理这里的.out 文件、即 PRU_HALT.out。 我知道这些只是构建块、这些 PRU 示例没有真正的答案。

    Seth

    P.S. 但是...这就是我所做的:  

    1) 1)在 WSL2计算机上安装 armhf PRU_CGT。 然后将其编译到指定的文件夹中。

    2)将文件下载到 ARM AM335x (BBB)。

    3) 3)然后、Git 克隆爬行动物。 适用于 PRU 软件支持包

    4) 4)导出 PRU_CGT=/home/debian/usr/bin

    5) 5)然后、进入/examples/am335x 并运行 make

    我应该安装文件还是按原样运行?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Seth、

    .out 文件是一个可以加载到 PRU 中的二进制文件。 我不确定 debian 是否使用 Linux RemoteProc 驱动程序、例如 Linux SDK 中的 TI Linux 版本。 在我们的 SDK 文档中、您可以在以下位置找到有关使用 RemoteProc 驱动程序加载 PRU 的文档:
    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

    此致、

    Nick