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 will enable the PRUSS (just PRUSS, not all the other subsystems, in order to save power) and also handle the pinmuxing. For testing and in the development phase, you run your application with sudo (for pinmuxing). When finished, separate the configuration part from your source and compile it, in order to execute in system init (for fixed pinmuxing). then your app can with root privileges. 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/9d827aea-5abb-42da-910b-219fa6daf53f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
