This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28065: Problem with control a pmsm motor using foc method

Part Number: TMS320F28065

Hello TI experts, 

I am going to control a PMSM motor using foc algorithm. I have designed a board which contains a f28065 microcontroller. In order to do that I started with ti application notes. Then I customised it according to my board.

I got started with HVPM_Sensorless project. I have followed the application note untill LEVEL4 successfully. Since my motor is not equipped with encoder, I move on to LEVEL 6. First, I set lsw to 0 then in watch window I change it to 1, finally when the rotor speed is close to speedRef, I set it to 2. In this process I have ran into some problems. 

1- sometimes, when I set lsw to 1, motor starts vibrating and makes a lot of sounds and it doesn't rotate at all. 

2- when lsw is set to 2 and rotor is rotating, if I physically stop the rotor and release it, it becomes unstable and also rotates in opposite direction. 

Could you please tell me what I should do?

Thanks in advance.