I'm trying to start a custom inverter hardware, based on the STM32-MCKIT hardware. The FOC library used is 2.0 configured in quadrature encoder mode. In my custom hardware I'm using the 64 pin version of the STM32F103, whereas in the STM32-MCKIT the 100 pin version is used. I've adjusted the peripherals initialization accordingly.
I already ran the application motor connected to the STM32-MCKIT, in order to get the right regulation parameters to be used on custom hardware later.
The problem I have is that the motor is stalled, no matter how I connect motor phases or the encoder. I've verified hundred of times the PWM pulses sequence, IGBTs, etc. It reaches a condition where there is sinusoidal current fed to two of the phases, but the third one remains off, or with wery short PWM pulses applied to it.
I suspect of the current sensing circuitry, but I'm unsure about it.
Do you have any hints which could help me in determining where the problem lies?