Open
Description
### Problem with mbed::PwmOut
with Portenta H7
IDE: Arduino IDE 1.8.15
Board: Portenta H7 and Portenta Breakout board
mbed::PwmOut
was working perfectly in ArduinoCore-mbed 2.2.0
but since update 2.3.1
it is not possible to make two PWM channels work simultaneously. Not yet tested with more channels.
Test sketch:
#include "mbed.h"
using namespace mbed;
PwmOut pwm_a(PA_8);
PwmOut pwm_b(PC_6);
void setup() {
pwm_a.period_us(5000);
pwm_a.pulsewidth_us(50);
pwm_b.period_us(5000);
pwm_b.pulsewidth_us(50);
}
void loop() {
}
Output results with version 2.2.0
in pins PWM0 (yellow) and PWM1 (blue):
Output results with version 2.3.1
in pins PWM0 (yellow) and PWM1 (blue):
As we can see PWM0 channel is not generating the setted pulse.
Please let me know if you need more information or help.