adafruit-beaglebone-io-python
adafruit-beaglebone-io-python copied to clipboard
BeagleBone Black Wireless PWM: RuntimeError: Problem with the cape manager
Hello, first time here. I got an issue.
I was trying to use PWM but an error showed.
Traceback (most recent call last):
File "dc_motor.py", line 14, in <module>
p = PWM.start(P_W_M, 50)
RuntimeError: Problem with the cape manager
This is the python file:
import Adafruit_BBIO.GPIO as GPIO
import Adafruit_BBIO.PWM as PWM
P_W_M = 'P9_42'
IN4 = 'P9_25'
IN3 = 'P9_27'
GPIO.setup(IN4, GPIO.OUT)
GPIO.setup(IN3, GPIO.OUT)
GPIO.output(IN4, GPIO.LOW)
GPIO.output(IN3, GPIO.LOW)
GPIO.setup(P_W_M, GPIO.OUT)
p = PWM.start(P_W_M, 50)
I did run:
sudo /opt/scripts/tools/version.sh
output:
git:/opt/scripts/:[721f317b40aabe880c34e8e16311812eeb464ce4]
eeprom:[A335BNLTBWA51646BBWG1556]
model:[TI_AM335x_BeagleBone_Black_Wireless]
dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600)]:[location: dd MBR]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-g07d5700e21]:[location: dd MBR]
UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
UBOOT: Loaded Overlay:[BB-BBBW-WL1835-00A0.bb.org-overlays]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.bb.org-overlays]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0.bb.org-overlays]
kernel:[4.9.147-ti-r121]
nodejs:[v10.24.0]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade
I hope you can help me to fix this 🙏.