You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read the implement of startPWMbyDMA, I think a memory leak was caused by allocateCB to /dev/vcio mailboxTx32(mbReleaseMemory, m.handle) maybe not work correctly
It'll not hung when useDMA=false,
so GPIO_13 GPIO_19 can works without hung
useDMA := false
switch p.number {
case 12, 40: // PWM0 alt0: disabled
useDMA = true
case 13, 41, 45: // PWM1
f = alt0
case 18: // PWM0 alt5: disabled
useDMA = true
case 19: // PWM1
f = alt5
default:
useDMA = true
}
Describe the bug
run code, and after some indeterminate time, exit and report:
restart and hung when call PWM(duty > 0) , Ctrl+C will not works.
AND raspberry pi cannot restart normally via
init 6
, MUST shutdown the powerBUT
RPi.GPIO
(python) orwiringpi
(C) can works normally with the same GPIO after hangedTo Reproduce
Steps to reproduce the behavior:
Pulse light
Expected behavior
An pulse light effect
Platform (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: