PWM Mysterious - XIAO SAMD21

did you look at the adafruit tutorial i linked above?

Did you try using that tutorial code?

I always say dont jump to the high frequency first
(also reduce your Serial Baud Rate to 9600)
try running your PWM code with very low frequency… like 1/10 or 1/100 or 1/1000

I used google translate to help me understand your code comments

I am not an expert on this thing so excuse me if i am giving you odd troubleshooting advice

I am not fully understanding why you think the motor needs 32kHZ PWM frequency this is a single phase motor

do you have a variable power supply to lower the input voltage… check for overcurrent or thermal?

https://forums.adafruit.com/viewtopic.php?t=199446

It is possable you may be having a problem with Back EMF… the magnetic coil needs to be able to sink the voltage as the field decays if a gate to ground is not available

I dont think the term PWM is correctly applied to this case is it is not like PWM for a Servo it is more Duty Cycle… in simple terms you are just turning the power switch on and off for a period of time… not trying to generate a waveform