Skip to main content
Associate III
Jun 18, 2025 1:23 PM UTC
Solved

Porting Dual FOC code from STM32F415zgtx to STM32F767ZI

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

This topic has been closed for replies.
cedric H
cedric HBest answer
ST Technical Moderator
Jun 20, 2025 7:52 AM UTC

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

4 replies

RahuldAuthor
Associate III
Jun 20, 2025 5:02 AM UTC

Please could you have any Comment on this. 

cedric H
cedric HBest answer
ST Technical Moderator
Jun 20, 2025 7:52 AM UTC

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
Jul 1, 2025 9:01 AM UTC

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.