Skip to main content
song
Associate III
June 25, 2015
Question

Problem with FOC Lib 4.0 examples

  • June 25, 2015
  • 2 replies
  • 939 views
Posted on June 25, 2015 at 09:14

I started to learn to use FOC Lib 4.0 to control a PMSM motor with encoder. I used MC workbench to configure the HW and generated code to SystemDriveParams, then I used the example project for STM32F30x_Workspace.uvmpw since I am using STM32303C-EVAL. Then the project is compiled and downloaded successfully. However, the motor has no response at all. After checking main.c file, I noticed there is no code related with motor control in main(void).

Did I miss anything in the process? How can I make the motor running?

#foc
This topic has been closed for replies.

2 replies

Gigi
ST Employee
June 25, 2015
Posted on June 25, 2015 at 09:44

The entry point of the MC Lib are the MCBoot function in main.c (to create and initialize all relate MC objects) and the Interrupt Service Routine someting in the stm32fxxx_MC_it.c and in Time Base

Ciao

Gigi

Laurent Ca...
Senior III
June 28, 2021

The question has been moved from the "Motor Control Hardware" section to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards