Simplefoc 2.1.1 vs 2.2.3 differences

hi @kuqn ,

I took a look at the setup in STM32CubeIDE, and the pins used are all on TIM3, so this configuration should work.

I’m still very confused as to why you don’t see debug output.

Can I ask you to try changing the way you write the pins?

You have BLDCDriver3PWM(PB_4, PB_5, PB_0, PB_12);, can you write it as BLDCDriver3PWM(PB4, PB5, PB0, PB12); ?

Like PB_4 it is a PinName structure, like PB4 it is an integer… The SimpleFOC functions expect Arduino pin numbers as plain integers, not as PinNames.
Also, Encoder(PA_8, PA_9, 1000); should be Encoder(PA8, PA9, 1000);

Please let me know if this helps any.