Could you give more details to the STM32 Community about your setup -the material you use- (HW and SW, CPU(s), tools and versions, board(s), motor(s) and so on)?
And more especially did you use MC tools (such as MC_suite, MC-Motor Profile, MC-SDK, MC-workbench, and so on)?