cancel
Showing results for 
Search instead for 
Did you mean: 

why motor profiler option not coming while setting parameter in workbench

poonamlakhara
Associate II

 i m using customized stspin32g4ACT board , nd version of work bench m using is 6.3.1 but when i try to generate code there is motor profiler option is disable  although m using stm32ide 1.17.0 when i upload code for led blink using pc14 it turn but don't blink but when m upload code through Arduino it blink very good pc14 and pc13 both in st32ide it does not blink show suggest me where i lacking motor m using is 2 pole hall sensor code is blow  , i m new to workbench so pls guys guide me

 

nd this is disable motor profiler image 

poonamlakhara_0-1752644964518.png

 

5 REPLIES 5
GMA
ST Employee

Hello @poonamlakhara,

Positioning the cursor on red bullet, you will have the explanation

GMA_0-1752647588661.png

Check LED_2 definitions LED_2_GPIO_Port and LED_2_Pin: GPIOC and GPIO_PIN_13. Does LED_2 blink "USER" button?

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

that i knew i already check it but when i generate it for PLL it did not connect nd now i try everything nd relise my while loop not working i upload led code / led toggle code but nothing work when i upload code led turn on but not blink i thought it hal_delay pin configuration problem but than i  uploaded code without code just set led from here /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(LED_2_GPIO_Port, LED_2_Pin, GPIO_PIN_SET);

/*Configure GPIO pin : LED_2_Pin */

GPIO_InitStruct.Pin = LED_2_Pin;

GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;

GPIO_InitStruct.Pull = GPIO_PULLUP;

GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;

HAL_GPIO_Init(LED_2_GPIO_Port, &GPIO_InitStruct);

GPIO_PIN_SET it turn on or if it  GPIO_PIN_RESET turn off loop not working so where i do mistake pls guide me so my below loop work 

while (1)

{

/* USER CODE END WHILE */

// Turn LED ON

HAL_GPIO_WritePin(LED_2_GPIO_Port, LED_2_Pin, GPIO_PIN_SET);

HAL_Delay(1000);

 

// Turn LED OFF

HAL_GPIO_WritePin(LED_2_GPIO_Port, LED_2_Pin, GPIO_PIN_RESET);

HAL_Delay(1000);

/* USER CODE BEGIN 3 */

}

/* USER CODE END 3 */

}

 

Hello @poonamlakhara,

The while loop is correct if LED_2_GPIO_Port and LED_2_Pin are correctly defined.
As previously asked: Does LED_2 blink using "USER" button?

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

 LED_2 (PC14 )not blink using "USER" button. Start_Stop(PC13) blink using user button. This is definition 

#define Start_Stop_Pin GPIO_PIN_13

#define Start_Stop_GPIO_Port GPIOC

#define Start_Stop_EXTI_IRQn EXTI15_10_IRQn

#define LED_2_Pin GPIO_PIN_14

#define LED_2_GPIO_Port GPIOC although both led perfect blink when programming done by Arduino

thanks problem is solve 

MX_MotorControl_Init();

this make code hang i disable it led start blinking but now problem to do run code with MX_MotorControl_Init();

cuz i want to move motor so disabling this motor could work ! so if anyone can help pls