cancel
Showing results for 
Search instead for 
Did you mean: 

STEVAL-PTOOL4A doesn't operate with potentiometer (only motor pilot could do )

moh007
Associate

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))

1 REPLY 1
GMA
ST Employee

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.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA