Skip to content

mbed::PwmOut 2.2.0 -> 2.3.1 with Portenta H7 #293

Open
@MarcoRBosco

Description

@MarcoRBosco

### 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):

NewFile1

NewFile2

Output results with version 2.3.1 in pins PWM0 (yellow) and PWM1 (blue):

NewFile3

As we can see PWM0 channel is not generating the setted pulse.

Please let me know if you need more information or help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PortentabugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions