My Motor don't spin with MCSDK_v5.3.3-Full on my custom board
Hello I made a custom board with a stm32f446ze and L6398 driver. To make it work I generated the source code thanks to STMCWB and I built it with atollic TRUE Studio.
And I added this code in the while loop in the main.c file:
/* USER CODE BEGIN 2 */
/* USER CODE END 2 */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
HAL_Delay(2000);
MC_ProgramSpeedRampMotor1(83,0);
HAL_Delay(100);
MC_StartMotor1();
HAL_Delay(3000);
MC_StopMotor1();
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
} // End of int main(void)
The PWM outputs of my microcontroler are still at 3.3V for high side and 0V for low side. I don't understand why but the pwm signals are not generated.
Is something missing in my code ? or the problem is somewhere else?
Regards