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.

PMSM FOC Build level 1 not working

Other Parts Discussed in Thread: DRV8332

 Hi,

I am trying to simulate PMSM TI implementation (HVPM_Sensored), on f28035. I have imported the project and then on debugging at first attempt itself, buld level 1 didn't work. I'm including a screenshot of the debug session, ipark1.Sine and cosine are showing 0 at the same time (Are they average values?). I'm a newbie to this area. Please help ASAP.

Thanks

  • did you write EnableFlag to be 1 ?? 

  • Hi,

    Actually i solved the issue.

    FYI, i have enabled the EnableFlag to 1. But there is a piece of infinite loop in the code. Which when commented, gives the result.

    Thanks for your response.

  • Hi, now i'm facing a problem with build level 2. I'm using DRV8332CKDR motor driver which needs a reset signal along with pwm signals. I have appropriately changed CAU and CAD, CBU and CBD in pwm initialization. But the mototr is not spinnig at all.

    Any help?

  • We have a direct project support for this driver, but you should be able to tweak the existing code to fit. Check if you get the PWM signals alright after this change, without connecting the motor. Some more digging in should help.

  • f2803xpwm.txt
    Fullscreen
    1
    2
    3
    4
    /* ==================================================================================
    File name: F2803xPWM.H
    Target : TMS320F2803x family
    =====================================================================================*/
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Hi,

    I am able to find out the code which is causing the problem, and it is PWM macro.  I am able to get the time periods from SVGEN macro but getting random output from pwm macro. I'm attaching the changed code. Can i get suggestions on the issues with the code? 

    I need rest signal for the DRV8332. So i have changed the code a bit, however i commented them.

    Thanks.

  • Oh, a typo in my previous post, we DONT have a direct project to support this driver. I recommend you to dig in some more like you did already.

  • Hi,
    with reference to above construct,
    I am able to get correct sinusoids out of pwm, but the motor is not spinning.
    I have changed the parameters of the motor accordingly.
    FYI, i'm using Drv8332 with f28035.
    Where might be the problem?
    thanks.
  • can u mention the piece of code which is in infinite loop as i am also facing the same difficulty.