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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy