2026-04-29 6:13 AM
I have STEVAL-PTOOL4A connected to drive
- 12V sensored BLDC motor
- 2 pair poles
- 16k rpm
I faced 2 problems
- First motor doesn't operate with potentiometer when used alone without the workbench
- leds doesn't light
(( THE SYSTEM POWERED BY 12VDC 10A))
2026-04-30 8:44 AM
Hello @moh007,
Thank you for your problem report.
For the potentiometer feature, the mc_task.c file is missing a required function call.
/* Includes ------------------------------------------------------------------*/
...
#include "mc_polpulse.h"
#include "mc_app_hooks.h" /*** Add line ***/
#include "fixpmath.h"
...
**
* @brief Initializes the whole motor control subsystem according to user
* configuration and parameters.
* @param pMCIList motor control interface data structure that will be
* initialized.
*/
__weak void MCboot( MCI_Handle_t* pMCIList[NBR_OF_MOTORS] )
{
...
FOC_Clear(M1);
MC_APP_BootHook(); /*** Add line ***/
LL_TIM_ClearFlag_UPDATE(TIM3);
STEVAL-PTOOL4A LED_INFO and LED_ERROR are not managed by default in projects generated by MCDSK.