Hi!

Am Mittwoch, 30. November 2016 06:30:41 UTC+1 schrieb Akshay Gahlot:
>
> I want to use for PWM generation to control servo motor. The problem i m 
> facing is :
>
> To enable libpruio i m using this dts file 
>
> https://github.com/jadonk/cape-firmware/blob/master/arch/arm/boot/dts/BB-BONE-PRU-01-00A0.dts
>
> To enable the pwm pin i m using cape-universaln 
>
> https://github.com/cdsteinkuehler/beaglebone-universal-io/blob/master/cape-universaln-00A0.dts
>
> These both files are kind of conflicting with each other as if one is 
> loaded to slots then other is not loading.
>

AFAIR cape-universal enables all subsystems, including the PRUSS. So you 
don't need BB-BONE-PRU-01.
 

>
> If i do not load the cape-universaln i m not able to export the pwm pins.
>

You need not export any pins when using libpruio. Just disable 
cape-universaln and load libpruio overlay instead. This has the same 
pinmuxing capabilities and will enable the PRUSS (just PRUSS, not all the 
other subsystems, in order to save power). For testing and in the 
development phase, you run your application with sudo (for pinmuxing). When 
finished, separate the configuration part from your source, add a line 
'io->Init = io->Conf' after configuration and before deleting the libpruio 
instance, and compile it, in order to execute it in system init (for fixed 
pinmuxing). Then your app can run without root privileges. (Or use 
dts_custom.bas to create your customized device tree.)

Regards

PS:
Recent images don't support libpruio at all.
libpruio-0.2.2 is designed for kernel 3.8. It needs adaption for newer 
kernel versions. In kernel 4.x, PWMSS->ehrPWM generated PWM signals don't 
work. So it's best to stay with the latest 3.8 for now.

-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/52c53d80-cad0-446a-bd4d-576e1d160590%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to