Re: [Machinekit] pru source code

2018-10-12 Thread Charles Steinkuehler
The practical limit on the number of PRU channels is the available PRU memory and how long it takes the PRU to process each channel. The MAX_CHAN value comes from the software pwm driver and is not currently used. It is somewhat misnamed, as it does not represent the number of PWM channels, but

Re: [Machinekit] pru source code

2018-10-11 Thread Magnus Wiberg
I've got a Beagleboard x15 for which there's no uio driver setup, only ti's remoteproc_pruss, thus the existing HAL_PRU_GENERIC driver won't work as is. I'm planning to use py-uio ( https://groups.google.com/forum/#!topic/beagleboard-x15/MfB-GMl0UYA ) to get a UIO for the pru. I thought that I

Re: [Machinekit] pru source code

2018-10-10 Thread Charles Steinkuehler
In general, the *.p files are PRU assembly code and you will need to use them (or the assembled PRU binary file). The *.c files are the HAL driver files used to talk to the PRU, you will likely need to replicate this functionality in Python if you want to talk directly to the PRU from Python.

Re: [Machinekit] pru source code

2018-10-08 Thread Magnus Wiberg
Hi! I'm looking to into the source code of hal_pru_generic to modify it to load the pru code using python with py-uio (so it can work on BBX15), but I'm having some trouble understanding the source code of the pru driver/component. My plan is to first make it work with step/dir. First: the

Re: [Machinekit] pru source code

2017-03-03 Thread Charles Steinkuehler
Please keep replies on-list. On 3/3/2017 11:46 AM, Chris Albertson wrote: >> When loaded, the driver takes the command line arguments and builds a >> task list in PRU memory to implement the desired function(s). This >> list also contains any parameters and local storage required for each >>

Re: [Machinekit] pru source code

2017-03-03 Thread Charles Steinkuehler
On 3/3/2017 10:22 AM, 'Marco Negrini' via Machinekit wrote: > hi everyone, > i am studying machinekit, in particular on the BeagleBone, i' ve found that > in > the CRAMPS.hal file it loads a file for the PRU called pru_generic.bin. > for what i've been able to see, the pru now controls stepgen

[Machinekit] pru source code

2017-03-03 Thread 'Marco Negrini' via Machinekit
hi everyone, i am studying machinekit, in particular on the BeagleBone, i' ve found that in the CRAMPS.hal file it loads a file for the PRU called pru_generic.bin. for what i've been able to see, the pru now controls stepgen and pwm generation. is there a manual for this libraries for the PRU?