question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running SysFsDriverTests or RaspberryPiDriverTests causes PWM to be unusable

See original GitHub issue

After running SysFsDriverTests or RaspberryPiDriverTests PWM no longer works.

I have 100% repro: If I run PWM tests in a loop or run LibGpiodDriverTests everything works without any issues. If I run SysFS or RPI3 GPIO tests once after that PWM becomes completely unusable and stops reacting to any changes (regardless if using PWM manually through /sys/class/pwm/ or our APIs) - PI has to be rebooted.

Found during testing https://github.com/dotnet/iot/pull/758

I’m currently on latest from master and my PI3 is running Raspbian after sudo apt-get update and sudo apt-get upgrade (was reproing before updates as well).

I’ll try to further isolate the problem if I have time.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
pgrawehrcommented, Dec 1, 2019

The reason for your problem is #857. You need to reset the pin to PWM mode after some other test has set it to in or out.

0reactions
pgrawehrcommented, Dec 10, 2022

Fixed with #1128.

Read more comments on GitHub >

github_iconTop Results From Across the Web

API Suggestion for Low-Level GPIO Drivers · Issue #809
This leads to two main topics: ... Running SysFsDriverTests or RaspberryPiDriverTests causes PWM to be unusable #874.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found