PRU

Hello Guys,

I am using debian image version 8.3 that I downloaded @ http://beagleboard.org/latest-images (4.1.15-ti-rt-r43). Also, I downloaded the TI SDK for AM335x (http://software-dl.ti.com/processor-sw/esd/PROCESSOR-SDK-LINUX-AM335X/latest/index_FDS.html).

I compiled the sample program for PRU (toggle_led.out) and copy it over in /lib/firmware/am335x-pru0-fw, but it did not work.

Then, I found Robert Nelson’s binary and it works fine.

https://github.com/RobertCNelson/boot-scripts/commit/20a16f79be80886a1e030d197573b5950f98626d#diff-a0ab1dbc32ef29215c473f3b8979ad32

Any idea?.

Regards,

John

Did you add this?

http://processors.wiki.ti.com/index.php/Processor_SDK_PRU-ICSS_Add_On_Package

Regards,
John

Or you can use the latest examples from here:

https://git.ti.com/pru-software-support-package/pru-software-support-package

Regards,
John

Hi John,

I have the PRU Add on which is pru-icss-4.0.1. Then, I tried the latest example from the git you provided.
I have some compilation error (please see the attached log.txt)

Regards,

John

log.txt (96.4 KB)

http://processors.wiki.ti.com/index.php/Mklib#Invoking_mklib_manually

Regards,
John

Hi John,

I were able to compile the missing library. I compiled the programs (git tags v4.0.0, v4.0.1 and v4.0.2) then copied the toggle_led.out fie into /lib/firmware and named it to am335x-pru0-fw.

None of them and are loading successfully. I am using debian version 8.3 running kernel 4.1.15-ti-rt-r43. Below are the version of my tools that I am using.

PRU_CGT=/home/jtobias/ti/ccsv6/tools/compiler/ti-cgt-pru_2.1.2
ARM_CGT=/home/jtobias/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5
SW_DIR=/home/jtobias/ti/AM335X_StarterWare_02_00_01_01

Regards,

John

Hi John,

I were able to compile the missing library. I compiled the programs (git tags v4.0.0, v4.0.1 and v4.0.2) then copied the toggle_led.out fie into /lib/firmware and named it to am335x-pru0-fw.

None of them and are loading successfully. I am using debian version 8.3 running kernel 4.1.15-ti-rt-r43. Below are the version of my tools that I am using.

What error messages are you getting?

Hi John,

I was getting “rproc_boot failed”

Regards,

John

If you are trying to compile the examples on the Beaglebone (no cross-compile), you don’t need the TI SDK.
The pru compiler and libraries are provided in the Debian 8.3 distribution.

There is a slight change required for the Make file in the examples to compile correctly.
I’ve got most of the examples working and it is amazingly easy once you limit the problem to the essentials.

Once you get past the provided examples and try to do something new, that is a new level of problems.

Regards,
Greg

If you are trying to compile the examples on the Beaglebone (no
cross-compile), you don't need the TI SDK.
The pru compiler and libraries are provided in the Debian 8.3 distribution.

There is a slight change required for the Make file in the examples to
compile correctly.
I've got most of the examples working and it is amazingly easy once you
limit the problem to the essentials.

Once you get past the provided examples and try to do something new, that
is a new level of problems.

Regards,
Greg

Hi Greg,

Thanks for the info. I'll check it later too.

Regards,

John