Help with Nucleo 144 -- no output on pins

@Antun_Skuric
@runger

I got some time and tried on STM32F103C8, and reproduced the init crash. It appears the pin combination must be some kind of a subset of “SimpleFOC STM32 Compatible” groups of pins else the init itself “crashes”.

For example if you have a Blue Pill,

BLDCDriver6PWM driver = BLDCDriver6PWM(PA7, PB13, PA9, PB14, PA10, PB15, PB12);

or

BLDCDriver6PWM driver = BLDCDriver6PWM(PA8, PB13, PA9, PB14, PA10, PB15, PB12);

will work, however

BLDCDriver6PWM driver = BLDCDriver6PWM(PA6, PB13, PA9, PB14, PA10, PB15, PB12);

will not go past the init.

This problem appears to be inherent to SimpleFOC only, as my sample debug code can output on random pin combinations just fine.

I am very curious what reasoning went into selecting (PA8, PB13, PA9, PB14, PA10, PB15, PB12)
in the sample code, was it just pure luck that it hit the correct working pin combination?

I have a few more STM32 MCUs, I will test my guess there too.