2024-11-20 08:40 PM
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.
2024-11-26 06:38 AM
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".
On "Call Hierarchy", you can select "Show Callers" ot "Show Calles".