Skip to content

Instantly share code, notes, and snippets.

@silver2row
Created April 24, 2018 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silver2row/32a7ae9b74a8110b45388cf0b3380798 to your computer and use it in GitHub Desktop.
Save silver2row/32a7ae9b74a8110b45388cf0b3380798 to your computer and use it in GitHub Desktop.
Getting ideas for routine check-up...strace!
2088 stat64("/usr/lib/python2.7", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
2088 stat64("/usr/lib/python2.7", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
2088 stat64("/usr/lib/python2.7/site", 0xbe8d4320) = -1 ENOENT (No such file or directory)
2088 open("/usr/lib/python2.7/site.arm-linux-gnueabihf.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
2088 open("/usr/lib/python2.7/site.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
2088 open("/usr/lib/python2.7/sitemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
2088 open("/usr/lib/python2.7/site.py", O_RDONLY|O_LARGEFILE) = 3
2088 fstat64(3, {st_mode=S_IFREG|0644, st_size=19947, ...}) = 0
2088 open("/usr/lib/python2.7/site.pyc", O_RDONLY|O_LARGEFILE) = 4
@silver2row
Copy link
Author

2509  stat64("/sys/devices/platform/ocp/48300000.epwmss/48300200.pwm/pwm/pwmchip1/pwm1", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
2509  open("/sys/devices/platform/ocp/48300000.epwmss/48300200.pwm/pwm/pwmchip1/pwm1/period", O_RDWR) = 3
2509  open("/sys/devices/platform/ocp/48300000.epwmss/48300200.pwm/pwm/pwmchip1/pwm1/duty_cycle", O_RDWR) = 5
2509  open("/sys/devices/platform/ocp/48300000.epwmss/48300200.pwm/pwm/pwmchip1/pwm1/polarity", O_RDWR) = 6
2509  open("/sys/devices/platform/ocp/48300000.epwmss/48300200.pwm/pwm/pwmchip1/pwm1/enable", O_RDWR) = 7

@silver2row
Copy link
Author

Hello,

I have been reading up on "issues" on the GitHub.com page, https://github.com/adafruit/adafruit-beaglebone-io-python/issues, and I have found some interesting info. but none has helped so far.

I tried to add pwm_set_polarity manually instead of using the four arguments at PWM.start().

Seth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment