Hello Alice,
thanks for looking in to this.
The external Fault signal triggers an interrupt, where I have to clear the FFLAG-bits manually to avoid constant re-triggering the interrupt.
So the FFLAG-bits are cleared again after the Fault occurs, while the FFPIN-bit is set as long as I pull the external Fault input pin to GND.
In the interrupt handler I also disable the PWM outputs by clearing the according bits in the OUTEN-register.
After a short delay (5 seconds) the SW tries to enable the PWM outputs again to attempt a restart, and it actually succeeds even though the FFPIN is still set and the FSAFE-function is enabled in the FCTRL-register.
Regarding the FSAFE-function the RM states in chapter 43.8.54 on page 1893
"0001b - Safe mode. PWM outputs disabled by this fault are not enabled until FSTS[FFLAGx] is clear and FSTS[FFPINx] is clear..."
This doesn't seem to be the case in my test, since I can enable the PWM outputs even though FSTS[FFPINx] is still set.
BR. Jörn