[beagleboard] Re: Figure out how to configure correctly modules, pins, and PRU to blink a led

2017-01-13 Thread Greg
Hi Lorenzo- An important file to view is the kernel log. At the command line: dmesg You should be able to find messages in this log which indicate success or failure of PRU firmware loading. Did you successfully modify the Device tree in order to enable the RemoteProc kernel drivers? This i

[beagleboard] Re: Figure out how to configure correctly modules, pins, and PRU to blink a led

2017-01-16 Thread ing4
Hi Greg, Thank you for your reply! Friday, I found what I was doing wrong: I was using am335X-boneblack.dts instead of am335X-boneblack-emmc-overlay.dts. This wrong dts was pinmuxing my target pin to HDMI, and I was not able to exploit config-pin. Therefore, I edited am335X-boneblack-emmc-over

[beagleboard] Re: Figure out how to configure correctly modules, pins, and PRU to blink a led

2017-01-16 Thread Greg
Lorenzo, nice to hear you are making progress. The Device Tree configuration is a significant barrier and once you break through that things will move quickly. I think you will find the rest of the examples will work relatively easily. Good luck and have fun with your project! Regards, Greg --

[beagleboard] Re: Figure out how to configure correctly modules, pins, and PRU to blink a led

2017-01-16 Thread ing4
Thank you, Greg! Device Tree was really confusing to me, probably due to the fact that I was using also examples from 3.8. By the way, I saw that you used an external ADC in your project, while I am scouting to use the internal ADC via PRU. May I ask why you did not use the internal ADC for yo

[beagleboard] Re: Figure out how to configure correctly modules, pins, and PRU to blink a led

2017-01-16 Thread Greg
There was nothing particularly practical about that PRU-ADC project. It was a means of learning PRU C programming, SPI bus, RemoteProc framework, and user-space C code (and others). It was an extremely good learning experience! I want to apply the knowledge gained to robotic projects and also

Re: [beagleboard] Re: Figure out how to configure correctly modules, pins, and PRU to blink a led

2017-01-16 Thread William Hermans
On Mon, Jan 16, 2017 at 9:55 AM, Greg wrote: > There was nothing particularly practical about that PRU-ADC project. It > was a means of learning PRU C programming, SPI bus, RemoteProc framework, > and user-space C code (and others). > It was an extremely good learning experience! I want to appl

Re: [beagleboard] Re: Figure out how to configure correctly modules, pins, and PRU to blink a led

2017-01-17 Thread ing4
On Mon, Jan 16, 2017 at 9:55 AM, Greg wrote: > There was nothing particularly practical about that PRU-ADC project. It > was a means of learning PRU C programming, SPI bus, RemoteProc framework, > and user-space C code (and others). > It was an extremely good learning experience! I want to ap

Re: [beagleboard] Re: Figure out how to configure correctly modules, pins, and PRU to blink a led

2017-01-18 Thread ing4
On Mon, Jan 16, 2017 at 9:55 AM, Greg wrote: > I'm pretty sure that others have successfully accessed the internal ADCs > from the PRU. If you do some searching I think you can find a specific > instance. > I think it should be possible via the PRU's OCP master port. > So far, I found example

Re: [beagleboard] Re: Figure out how to configure correctly modules, pins, and PRU to blink a led

2017-01-23 Thread ing4
As far as I understood from the example, it should be enough to enable "OCP port" and point to TSC ADC registers (i.e. on-board/internal ADC registers) in order to configure and read values, am I right? Hence, I wrote down a header file (i.e. sys_tscadcss.h) which contains the structure that re

Re: [beagleboard] Re: Figure out how to configure correctly modules, pins, and PRU to blink a led

2017-01-31 Thread ing4
I did some step forward and I putted my header file on github . I hope that it could be helpfull :) One note: it is mandatory to power the TSC_ADC via PRCM or DT (i.e. device tree, I used the uio_pdru_genirq as suggested by zmatt). Now, I am experiencing that A