Skip to main content
Associate II
May 23, 2025
Question

Generate Code with Dual Motor on MC WorkBench

  • May 23, 2025
  • 5 replies
  • 1448 views

Hi ,

We are working on NUCLEO- F401RE board for motor control and to configure & generate code MC WorkBench(version 6.3.2) is used. We have driven single motor, but we are not able to configure for dual motor below pop up appeared:

Harsh_M_0-1748002626853.png

Hardware Setup:

Motors:

Harsh_M_1-1748002840722.png

Power Board:

Harsh_M_2-1748002868874.png

Control Board:

Harsh_M_3-1748002889583.png

Connections:

Harsh_M_5-1748003071007.png

Is there incorrect configuration, or could you please suggest any other combination for dual motor (preferred control board f4 or f7)?

Thanks,

Harsh

 

 

 

This topic has been closed for replies.

5 replies

GMA
ST Technical Moderator
May 23, 2025

Hello @Harsh_M,

To drive two motors, MCU should have two advanced-control timers (only one is available on STM32F401RE MCU).
As mentioned on MCSDK6.3.2, dual drive is not supported on the STM32F7 series.
You can have a look to STEVAL-IHM039V1 board that is Dual Drive capable and based on STM32F415ZG MCU. On the STM32F4 series, only one current sensing configuration: 2ADCs, and ADC1-ADC2 configuration for both motors.
You have to ensure that:

  • both motor phase voltage signals could be connected to ADC1/2 Inputs.
  • PWM signal could be connected to two different advanced-control timers.

Refer to the MCU reference manual for more detail.

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA
Harsh_MAuthor
Associate II
May 26, 2025

Hi @GMA ,

 

We have successfully created project with your suggested combination (STEVAL-IHM039V1 board and STM32F415ZG MCU) for dual motor setup.

But when we look into STM32F7 series controllers. It has two different advanced-control timers.

(TIM1 & TIM8).

Could you please explain why F7 not fit for dual motor setup?

Thanks,

Harsh

GMA
ST Technical Moderator
May 26, 2025

Hello @Harsh_M,

Feature has not been introduced on STM32F7 series for the moment.

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA
Harsh_MAuthor
Associate II
May 29, 2025

Hi @GMA ,

Is that mean STM32F7 is capable driving two motor with FOC but it is not implemented on MC workbench yet?

Thanks,

Harsh

 

cedric H
ST Technical Moderator
May 30, 2025

Hi @Harsh_M ,

Correct, the hardware is capable, but the MCSDK does not support it.

Regards

Cedric