cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with FOC Lib 4.0 examples

song
Associate II
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
2 REPLIES 2
Gigi
ST Employee
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...
Lead II

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