My recommendation is to check out
https://markayoder.github.io/PRUCookbook/
The Beaglebone Black has the needed compiler and linker modules.
You can compiler code directly on the BBB, no need to compile on the PC
and then transfer to the BBB.
Chad
On 11/14/18 2:51 PM, [email protected] wrote:
Hi guys,
I am having some problems in getting started with PRU.
So, first of all, I installed one PRU compiler (CSS) (I follow this
article: http://processors.wiki.ti.com/index.php/PRU_Training:_Hands-on_Labs
After having the compiled the file, and from what I've read throughout
the internet, I thought that in order to run a program into the PRU I
should simply do:
- cp mycode.out /lib/firmware/am335x-pru0-fw
- echo 'start' > /sys/class/remoteproc/remoteproc1/state
However, If I try it with a code to blink a led it does nothing
(example of the code for blinking a LED above).
volatileregisterunsignedint__R30;
intmain(void) {
__R30 = SET_MASK;
while(1) {
__R30 = __R30 & ~(SET_MASK);
__delay_cycles(100000000); // half-second delay
}
}
I've also tried to follow this tutorial:
http://www.righto.com/2016/09/how-to-run-c-programs-on-beaglebones.html
and I get an error when I do: ./loader text.bin data.bin, it says an
error message of "prudrv failed to open". But I can't quit understand
what that program does.
Can anyone tell me what am I doing wrong ?
Thanks you very much,
Fred Gomes
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google
Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/a518508e-2d92-40c8-ba23-c0056861f86d%40googlegroups.com
<https://groups.google.com/d/msgid/beagleboard/a518508e-2d92-40c8-ba23-c0056861f86d%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/b70190ca-81e2-d986-678f-3bcaccf7f7a6%40gmail.com.
For more options, visit https://groups.google.com/d/optout.