Giter Club home page Giter Club logo

Comments (4)

malcolmputer avatar malcolmputer commented on August 27, 2024

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.

AdrianIRL avatar AdrianIRL commented on August 27, 2024

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.

delijati avatar delijati commented on August 27, 2024

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.

tdicola avatar tdicola commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.