> > However I could not produce any outputs. I measure all channels with an > oscilloscope, but unfortunately no success. Do you know what I did wrong? >
No. Did you test the correct pins ? Also what is the output of: $ ls /sys/devices/platform/ocp/ ? On Thu, Jul 28, 2016 at 3:00 AM, <[email protected]> wrote: > Hello William, > > so I tried your approach however without success. Here is how I did it: > > > - I exported the capes to sys/devices/platform/bone_capemgr/slots. > This reads now as follows: > > 0: PF---- -1 > 1: PF---- -1 > 2: PF---- -1 > 3: PF---- -1 > 4: P-O-L- 0 Override Board Name,00A0,Override Manuf,BB-UART1 > 5: P-O-L- 1 Override Board Name,00A0,Override Manuf,BB-UART5 > 6: P-O-L- 2 Override Board Name,00A0,Override Manuf,univ-wph > > - I changed directory and exported all pwms > > cd /sys/class/pwm > for chip in *; do for i in 0 1; do echo ${i} > ${chip}/export; done ; > done > > - This is what I see in one of the directories > > > root@beaglebone:/sys/class/pwm/pwmchip0/pwm0# ls > > duty_cycle enable period polarity power uevent > > > - After that i change to the /sys/class/pwm folder and set all > pwms to 50% duty cycle and 100000 ns Period via the following command: > > cd /sys/class/pwm > for chip in *; do for i in 0 1; do echo 100000 > ${chip}/pwm${i}/ > period; echo 50000 > ${chip}/pwm${i}/duty_cycle; echo 1 > > ${chip}/pwm${i}/enable > ; done ; done > > > > I checked, and all directories read as follows > root@beaglebone:/sys/class/pwm/pwmchip0/pwm0# cat enable period duty_cycle > 1 > 100000 > 50000 > > > However I could not produce any outputs. I measure all channels with an > oscilloscope, but unfortunately no success. Do you know what I did wrong? > > Best regards, > Phil > > -- > 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/220d6ab8-6015-442c-92c9-293e0eed5df5%40googlegroups.com > <https://groups.google.com/d/msgid/beagleboard/220d6ab8-6015-442c-92c9-293e0eed5df5%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CALHSORqcrJ6bUeo0Gd%3DZiy0LmCh6fbdzn67T-Lwy9Sp%3DaVZrng%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
