2025-11-05 1:46 AM - last edited on 2025-11-05 2:44 AM by Peter BENSCH
Hey Guys,
I’m facing an issue with motor operation using the STEVAL-ESC002V1 solution. Despite setting MC_set_speed(MAX_SPEED), the motor doesn’t reach full speed and runs unevenly with vibrations. It only rotates at a low speed instead of the expected maximum. I’ve attached my workspace configuration for reference. Kindly help me identify and resolve this issue to achieve smooth and stable motor operation.
int main(void)
{
/* MCU Configuration----------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* Configure the system clock */
SystemClock_Config();
/* Initialize all configured peripherals */
MX_GPIO_Init();
#if (defined(POTENTIOMETER)||defined(CURRENT_SENSE_ADC)||defined(VBUS_SENSE_ADC)||defined(TEMP_SENSE_ADC))
MX_ADC_Init();
#endif
#if defined(ST_PWM_INTERFACE)
MX_IF_TIMx_Init();
#endif
MX_LF_TIMx_Init();
MX_HF_TIMx_Init();
MX_ZC_TIMx_Init();
#if defined(UART_COMM)
MX_UART_Init();
#endif
MC_SixStep_INIT();
MC_StartMotor();
/* Infinite loop */
while (1)
{
MC_Set_Speed(MAX_SPEED);
}
}
in the setting i had enable the UART_COM (project->option->symbols)
2025-11-07 2:34 AM
Hi @shashank7
I invite you to first review the following link, which can also be found in the MCSDK Workbench documentation section under About > Documentation > Wiki.
The document provides information on tuning specific parameters to help you achieve the maximum target speed.
To summarize, you can adjust the following parameters:
Best regards.
Fabrice