Portenta_H7_PWM Library

Portenta_H7 hardware PWM can be used only for some pins. Check the note in PWMs_Array_Complex.ino#L159-L160

  • Pins OK to use
// Only OK for D0, D1, D2, D4 and D5, PA_0C(D15/A0), PA_1C(D16/A1), 
  • Pins not OK to use
// D3, D6, D7, D8, D9, D10, D11, D12, D13, D14, D17(PC_2C/A2), D18(PC_3C/3), PC2(D19/A4) LEDG, LEDB not OK

I Tried your examples and unfortuanelty the lib is working on the one hand, on the other hand, the Pins are not toggeling as expected (they stay "0").

I suggest you try the unmodified examples first to be sure they are working OK on your board, then adapt one of them to your use case.

Do i really have to set the pin state manual in the isr callbacks? e.g. digitalWrite?

Totally optional to demo some features.

Good Luck,