Motor stops during ramp-up
I could use some help in getting my motor controller through starting the motor. It tries, but always fails to completely start up.
I'm working on developing a custom motor control demonstrator board, built with discrete components in the power stage. I've been trying to get it going with a small motor (the Bull Running BR2804), but no matter what I try, I can't get it to run properly. The system performs motor alignment correctly and starts to spin the motor, but then it stops towards the end of the initial acceleration phase. The board whines for a short time after the motor stops, and the control panel in the workbench software still displays an increase in speed, which makes me think the motor is being run open-loop. With the current configuration (below), the motor stops about 5 seconds after i start it, then the board appears to detect this at about 7 seconds, and the control panel indicates a start-up error.
My setup is as follows:
Startup

Drive settings

MCU params

Phase current params

Speed sensing params

Power stage current sensing

I'm running the software on an STM32F407VET6. It's being built in Keil uVision 5, I think using a trial copy. I've adjusted the target MCU in the build settings, but haven't made any other changes. Incidentally, I've noticed that the project didn't appear to build in TRUEStudio. It seems to have a problem with the generated project, and fails to find a lot of included files.
If anyone can offer any suggestions or advice, I'll be very grateful.