Skip to main content
Associate III
June 18, 2025
Solved

Porting Dual FOC code from STM32F415zgtx to STM32F767ZI

  • June 18, 2025
  • 1 reply
  • 2694 views

Hi ST,

I have generated dual FOC code using micro STM32F415zgtx and MC Workbench 6.4.0. I have to use STM32F767ZI in my application. Is It possible to port this software from STM32F415zgtx to STM32F767ZI and run two BLDC motors with FOC.

Thanks,

Rahul Deshpande

Best answer by cedric H

Hello @Rahuld,

STM32F767ZI can run dual FOC without any issue.

Porting the code from STM32F415 is possible, but I would advise to start with a single motor project based on STM32F7 and once it runs on your platform to move to dual drive looking how it is done for STM32F4.

It is not straight forward but fully doable for an experimented FW developer.

Best Regards

Cedric

1 reply

RahuldAuthor
Associate III
June 20, 2025

Please could you have any Comment on this. 

cedric H
cedric HBest answer
Technical Moderator
June 20, 2025

Hello @Rahuld,

STM32F767ZI can run dual FOC without any issue.

Porting the code from STM32F415 is possible, but I would advise to start with a single motor project based on STM32F7 and once it runs on your platform to move to dual drive looking how it is done for STM32F4.

It is not straight forward but fully doable for an experimented FW developer.

Best Regards

Cedric

RahuldAuthor
Associate III
July 1, 2025

Hi @cedric H 

During Porting software, in sensor less speed measurement using STO-PLL observer I did not get any idea for the parameters F1, F2, gain1 and gain2 parameters from user manual (STM32 motor control SDK user manual) and software code too. could you help me to understand how these parameters are computed by workbench by using motor parameters. this will help me lot.

Rahuld_1-1751360476706.png

Thanks,

Rahul D.