Skip to main content
Associate III
November 21, 2024
Question

FOC steps in code in NUCLEO-IHM07M1

  • November 21, 2024
  • 1 reply
  • 521 views

Sorry for any silly questions asked, but please help since I am actually a beginner.

Ques: I can see most of the FOC steps are inside "FOC_CurrControllerM1" function. And we just add below code in main() for motor to start and run:

 

MC_ProgramSpeedRampMotor1(RPM_2_SPEED_UNIT(1200), 2000);

MC_StartMotor1();

MC_StopMotor1();


But I want to know from below code where does "FOC_CurrControllerM1" called? How this code is following FOC Algorithm flow ?

 

I am using NUCLEO-IHM07M1.

 

 

 

1 reply

GMA
Technical Moderator
November 26, 2024

Hello @tejas_amp,

Architecture is described in User Manual documentation available through "Workbench tool">About>Documentations>Documentation>"User manual", "Motor Control Firmware architecture" link.
Using STM32CubeIIDE, right click on function and select "open call hierarchy".

GMA_0-1732631685887.png

On "Call Hierarchy", you can select "Show Callers" ot "Show Calles".

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