Hello Friends, Could anyone provide me with the latest documentation to get a c program to run on the pru?
I am using this version of Debian GNU/Linux 10 (buster), Linux beaglebone 4.19.94-ti-r42 #1buster SMP PREEMPT Tue Mar 31 19:38:29 UTC 2020 armv7l GNU/Linux
It should say “Output files can be found in the “gen” directory”. That means it was successful at compiling for the PRU. Now you need to move the generated file, and then start the PRU.
Move the file in gen/ to /lib/firmware, while also renaming the file. We are going to stick to PRU0 for now… PRU0 is expecting a file in /lib/firmware with a specific name of ‘am335x-pru0-fw’ (which can be changed as you get familiar with the beagle bone. We will stick to the default for now)
@roberte1997 , the PRU software support package is a good starting point. But do note that version 6.2.0 is not compatible with rony_vargas’ kernel (4.19). It requires kernel 5.10 or later.
@RobertCNelson , The existing code base is already in C and it was written in C before for “high precision with PWM” according to its author. Would you recommend that i translate it from C → python? 2.7 or 3+? Is python on the pru easiest than C?
Well my friend @roberte1997 it said the state PRUI1 is offline but when I did the command echo “start”> /sys/class/remoteproc/remoteproc1/state, it doesn’t work.
my friend @roberte1997 the code example works of the PRU_gpioToggle, but I have another question Can I do my own in the PRU starting to work from this code, I want to make changes to that code and then compile and make it work, is it posible my friend?