Comments (4)
I can confirm this as a bug, however I resorted to just using Angstrom.
Also, see Issue 22 for further description.
from adafruit-beaglebone-io-python.
I have been using Angstrom also, its a pity it doesn't work on Ubuntu but I'll survive!
Thanks
from adafruit-beaglebone-io-python.
If i start two PWM's and set frequency it breaks with the same error:
PWM.start('P9_14', 0, frequency=100)
PWM.start('P9_16', 0, frequency=100)
dmesg
[ 135.563309] bone-capemgr bone_capemgr.9: slot #8: Requesting part number/version based 'bone_pwm_P9_14-00A0.dtbo
[ 135.563363] bone-capemgr bone_capemgr.9: slot #8: Requesting firmware 'bone_pwm_P9_14-00A0.dtbo' for board-name 'Override Board Name', version '00A0
'
[ 135.563422] bone-capemgr bone_capemgr.9: slot #8: dtbo 'bone_pwm_P9_14-00A0.dtbo' loaded; converting to live tree
[ 135.566394] bone-capemgr bone_capemgr.9: slot #8: #2 overlays
[ 135.572094] bone-capemgr bone_capemgr.9: slot #8: Applied #2 overlays.
[ 135.773405] bone-capemgr bone_capemgr.9: part_number 'bone_pwm_P9_16', version 'N/A'
[ 135.773479] bone-capemgr bone_capemgr.9: slot #9: generic override
[ 135.773497] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 9
[ 135.773515] bone-capemgr bone_capemgr.9: slot #9: 'Override Board Name,00A0,Override Manuf,bone_pwm_P9_16'
[ 135.773611] bone-capemgr bone_capemgr.9: slot #9: Requesting part number/version based 'bone_pwm_P9_16-00A0.dtbo
[ 135.773628] bone-capemgr bone_capemgr.9: slot #9: Requesting firmware 'bone_pwm_P9_16-00A0.dtbo' for board-name 'Override Board Name', version '00A0
'
[ 135.773651] bone-capemgr bone_capemgr.9: slot #9: dtbo 'bone_pwm_P9_16-00A0.dtbo' loaded; converting to live tree
[ 135.773957] bone-capemgr bone_capemgr.9: slot #9: #2 overlays
[ 135.774896] ehrpwm 48302200.ehrpwm: Period value conflicts with channel 0
[ 135.782095] pwm_test pwm_test_P9_16.16: pwm_config() failed
[ 135.796707] pwm_test: probe of pwm_test_P9_16.16 failed with error -22
[ 135.796754] bone-capemgr bone_capemgr.9: slot #9: Applied #2 overlays.
[ 136.086376] unexport_store: status -22
ls -l /sys/devices/ocp.3/pwm_test_P9_1*
ls -l /sys/devices/ocp.3/pwm_test_P9_1* [17:40:49]
/sys/devices/ocp.3/pwm_test_P9_14.19:
total 0
lrwxrwxrwx 1 root root 0 Apr 29 17:40 driver -> ../../../bus/platform/drivers/pwm_test
-rw------- 1 root root 4096 Apr 29 17:40 duty
-r--r--r-- 1 root root 4096 Apr 29 17:40 modalias
-rw------- 1 root root 4096 Apr 29 17:40 period
-rw------- 1 root root 4096 Apr 29 17:40 polarity
drwxr-xr-x 2 root root 0 Apr 29 17:40 power
-rw------- 1 root root 4096 Apr 29 17:40 run
lrwxrwxrwx 1 root root 0 Apr 29 17:40 subsystem -> ../../../bus/platform
-rw-r--r-- 1 root root 4096 Apr 29 17:40 uevent
/sys/devices/ocp.3/pwm_test_P9_16.20:
total 0
-r--r--r-- 1 root root 4096 Apr 29 17:40 modalias
drwxr-xr-x 2 root root 0 Apr 29 17:40 power
lrwxrwxrwx 1 root root 0 Apr 29 17:40 subsystem -> ../../../bus/platform
-rw-r--r-- 1 root root 4096 Apr 29 17:40 uevent
For now i'm not setting frequncy and it works :/
A maybe better solution is to patch pwm_test.ko
https://github.com/SaadAhmad/beaglebone-black-cpp-PWM
from adafruit-beaglebone-io-python.
I'm cleaning up old issues and tested the PWM pin functionality on the latest official Debian image (from http://beagleboard.org/latest-images ) but didn't see any issues with using them. Check out my comment here for more info: #41 (comment) Try using the latest Debian image since a lot might have changed since this issues was originally raised.
For delijati's issue I tried to repro it but didn't see any errors when running the same PWM.start commands with frequency=100. I was able to change the duty cycle and frequency of the pins and verified they were the expected value with a multimeter. Try using the latest Debian image to see if there are still issues.
I'll close this issue for now, thanks for raising it and adding all the details!
from adafruit-beaglebone-io-python.
Related Issues (20)
- Probably errant delays in GPIO/PWM HOT 2
- Errors during installing Adafruit_BBIO with Pip HOT 1
- Set pin mode failed for uart channel. (UART4) HOT 4
- Cannot initialize GPIO.INPUT on BeagleBone Black Ubuntu 20.04 HOT 2
- PWM test code doesn't work. "Runtime Error: unknowm error"
- BeagleBone Black Wireless PWM: RuntimeError: Problem with the cape manager
- Can't Seem to Install Adafruit BBIO Library on BBB (multiple definition error) HOT 3
- Beaglebone SPIs
- Python lock up while using ADC HOT 1
- ValueError: Set gpio direction failed, missing file or invalid permissions.
- Measure frequency
- Reading pulse encoder incorrect
- sudo pip3 install Adafruit_BBIO fails on Python >= 3.9 HOT 1
- UART no response after upgrade to Buster (similar issue to #291)
- Compilation Warnings when building CPP library
- ValueError: Set gpio mode failed, missing file or invalid permissions. HOT 1
- GPIO.add_event_detect : does not properly handle lambda expressions HOT 1
- documentation error in encoder.py
- P9_28 - P9_29 - P9-31 pins setup as GPIO problem HOT 2
- SPI bits per word increase from 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit-beaglebone-io-python.