Problems accessing Portenta PWM pin PG_7

Hi
Trying to access PG_7 as a PWM pin via PwmOut. Even doing the most basic thing puts the Portenta in a panic. I tried this on two different Portenta boards.
#include “mbed.h”
#include <PwmOut.h>

using namespace mbed;

PwmOut motor1(PG_7);

void setup() {
Serial.begin(115200);
}

void loop() {
// put your main code here, to run repeatedly:
}

I have the same issue. Writing to this port (D3) with analogWrite causes the Porenta to lose the serial port and starts pulsing with red led in 4 x long + 4 x short pulses.
Still no response to this error?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.