cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Motor Control SDK -V6.41

JayarajAnbalagan
Associate II

Hai All,

  New to the workbench software.

  Able to set the required parameters - STM32F446RE & IHM08M1.

  Getting stuck in the final path - CubeMx & IDE.

   But I am having the latest updated one.

   Kindly help me where I am missing.

Jayaraj.A

1 ACCEPTED SOLUTION

Accepted Solutions
ASA
ST Employee

Hello @JayarajAnbalagan ,

 

a similar issue had been encountered with Cubemx version not displayed (ST Motor Control Workbench Not Detecting STM32Cube... - STMicroelectronics Community).

 

Can you please check the following list to provide us more information to identify better the problem:

1) operating system version

2) operating system language

3) MCSDK installation admin or user only

4) CubeMX installation admin or user only

5) Have you other CubeMX installed?

6) have you moved manually the CubeMx Installation folder?

7) CubeMx open regularly in standalone mode?

8) Check with registry editor if exist keys (one of the above at least) 
 -Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\STM32CubeMX*
 -Computer\HKEY_LOCAL_MACHINE\SOFTWARE\\Microsoft\Windows\CurrentVersion\Uninstall\STM32CubeMX*
for 64 and 32 branch.

 

Kind regards

 

 

 

If you agree with my answer, please accept it by clicking on 'Accept as solution'.

View solution in original post

6 REPLIES 6
ASA
ST Employee

Hello @JayarajAnbalagan ,

 

a similar issue had been encountered with Cubemx version not displayed (ST Motor Control Workbench Not Detecting STM32Cube... - STMicroelectronics Community).

 

Can you please check the following list to provide us more information to identify better the problem:

1) operating system version

2) operating system language

3) MCSDK installation admin or user only

4) CubeMX installation admin or user only

5) Have you other CubeMX installed?

6) have you moved manually the CubeMx Installation folder?

7) CubeMx open regularly in standalone mode?

8) Check with registry editor if exist keys (one of the above at least) 
 -Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\STM32CubeMX*
 -Computer\HKEY_LOCAL_MACHINE\SOFTWARE\\Microsoft\Windows\CurrentVersion\Uninstall\STM32CubeMX*
for 64 and 32 branch.

 

Kind regards

 

 

 

If you agree with my answer, please accept it by clicking on 'Accept as solution'.

Sir,

  Thanks for your reply.

  Installed the CubeMx separately (Ur 5,6&7th Point), apart from CubeIDE+CubeMx combination.

  Now the Motor Bench is detecting the CubeMX & IDE and generating the code.

  Using 446 Nucleo & IHM08M1 Hardware and planning to work on 6 Step Commutation using Hall Sensor, without sensing the feedback Current & Voltage ADCs.

  Motor Spec - Linix  36ZWN24-30-34- 24V/1.85A/Rated Speed - 3400 rpm.

  Any advisable precautions.

Hai Sir,

  MCSDK – 446 + IHM08M1 Interface.

Generated the code using MCSDK 6.4.1 and analysing it.

Attached is the video of my motor control configuration – Basic Hall Effect Sensor based 6 step commutation using Switch and ADC Speed Control.

Unable to see any control routine in my main closed loop – where the switch press and the speed control ADC is called.

Kindly help me out, how to proceed.

Hi @JayarajAnbalagan,

This while loop is defined as a background task that waits for other events used by the motor control algorithm. For software application purposes, you can set your code in this area after the MX_NVIC_Init(); function.

/* Initialize interrupts */
MX_NVIC_Init();
/* USER CODE BEGIN 2 */

/* USER CODE END 2 */

/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */

/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */

 A set of application programming interfaces (APIs) has been developed to control the motor. Refer to the documentation section of the STM Workbench tool at About > Documentation > Components > Application Programming Interface > Motor Control API. Note that most of the APIs are dedicated to the field-oriented control (FOC) algorithm; however, the main ones are compatible with the 6-step algorithm, such as:

bool MC_StartMotor1 (void) Initiates the start-up procedure for Motor 1.
bool MC_StopMotor1 (void) Initiates the stop procedure for Motor 1.
void MC_ProgramSpeedRampMotor1 (int16_t hFinalSpeed, uint16_t hDurationms) Programs a speed ramp for Motor 1 for later or immediate execution

To control your motor, you can use the STM Motor Pilot tool for tuning and development. This tool can be launched from the STM Workbench at Tools > Motor Pilot. Additional documentation is available in the STM Workbench under About > Wiki > SDK-MC Motor Pilot Start-up Guide.

Best Regards.

Fabrice

Sir, 

  Thanks for your reply.

  Generated the code, downloaded and able to spin the motor in 6 Step commutation mode (without knowing the basics).

  Doubts:

   1. Single step debugging is advisable or not (6 Step Commutation)?

    2. How to monitor what is happening in the CPU (Firmware Flow)? Register Level required.

    a. Speed Set ADC to PMW Link?

    b. PWM Leg Changeover based on Hall Effect ? 

    c. ADC Overload configuration? Single Shot mode or when it is captured?

    d. PMW Duty Cycle Maximum Duty Cycle Limitation? (80 or 90%).

    e. Speed measured wrt to all 3 sensors or 2 or 1 sensor?

    f. PWM first or Hall Effect - Executed (Egg or Hen)?

  Bit sure, all the above are academic level questions.

 

1. Single step not possible as the motor stops you can use cube monitor.

2. Try Cube monitor you can watch variables.

Help available in MCSDK documentation

d. It is configurable 

e. Pwm should apply then motor starts moving hall sensor interrupt will happen.