Peace!

I'm attempting use the PWM output from a Pocketbeagle.  My test code is 
below:

# pwm test script
import Adafruit_BBIO.PWM as PWM

out = "P1_36"

PWM.start(out, 0,frequency=50)

while(1):
    PWM.set_duty_cycle(out, 100)

However, upon running this code, I get the following error message:

Traceback (most recent call last):
  File "/var/lib/cloud9/pwm_test.py", line 6, in <module>
    PWM.start(out, 0,frequency=50)
RuntimeError: Problem with the cape manager

I already looked at 
https://github.com/adafruit/adafruit-beaglebone-io-python/issues/262, which 
did not work for me, and 
https://github.com/adafruit/adafruit-beaglebone-io-python/issues/286, which 
I couldn't implement because I'm having difficulties connecting the 
Pocketbeagle to the internet.

Any help would be appreciated.  I also ran /opt/scripts/tools/version.sh, 
the output of which is below.

debian@beaglebone:/var/lib/cloud9$ sudo /opt/scripts/tools/version.sh

git:/opt/scripts/:[1aa73453b2c980b75e31e83dab7dd8b6696f10c7]
eeprom:[A335PBGL00A21741GPB42758]
model:[TI_AM335x_PocketBeagle]
dogtag:[BeagleBoard.org Debian Image 2018-10-07]
bootloader:[microSD]:[/dev/mmcblk0]:[U-Boot 2018.09-00002-g0b54a51eee]:[
location: dd MBR]
kernel:[4.14.71-ti-r80]
nodejs:[v6.14.4]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14
-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade 
<pkg>]
pkg:[bb-cape-overlays]:[4.4.20180928.0-0rcnee0~stretch+20180928]
pkg:[bb-wl18xx-firmware]:[1.20180517-0rcnee0~stretch+20180517]
pkg:[kmod]:[23-2rcnee1~stretch+20171005]
pkg:[librobotcontrol]:[1.0.3-git20181005.0-0rcnee0~stretch+20181005]
pkg:[firmware-ti-connectivity]:[20170823-1rcnee1~stretch+20180328]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video 
plugdev users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep 
admin spi tisdk weston-launch xenomai]
cmdline:[console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 
rootwait coherent_pool=1M net.ifnames=0 quiet]
dmesg | grep pinctrl-single
[    1.103354] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 
568
dmesg | grep gpio-of-helper
[    1.111563] gpio-of-helper ocp:cape-universal: ready
END

-- 
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/51ed2ad2-3eba-4cb1-a5cb-48a114a3a630%40googlegroups.com.

Reply via email to