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
So apparently there is a bug in hardwaretimer PWM mode 1 for CH32X035F8U6 :
The first bug is that CH_PIN_CHANNEL(pinmap_function(digitalPinToPinName(PA7), PinMap_PWM)); will return the value 1, but it should return the value 2 (PA7 is T3C2).
The second bug is that if srvTim->setMode(channel2, TIMER_OUTPUT_COMPARE_PWM1, PA7); is called, it will just crash the system.
When only srvTim->setMode(channel1, TIMER_OUTPUT_COMPARE_PWM1, PA6); is called, the PWM on PA6 works normally.
So apparently there is a bug in hardwaretimer PWM mode 1 for CH32X035F8U6 :
The first bug is that CH_PIN_CHANNEL(pinmap_function(digitalPinToPinName(PA7), PinMap_PWM)); will return the value 1, but it should return the value 2 (PA7 is T3C2).
The second bug is that if srvTim->setMode(channel2, TIMER_OUTPUT_COMPARE_PWM1, PA7); is called, it will just crash the system.
When only srvTim->setMode(channel1, TIMER_OUTPUT_COMPARE_PWM1, PA6); is called, the PWM on PA6 works normally.
The text was updated successfully, but these errors were encountered: