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.

TMS320F28P650DK: sensored foc (fcl) on launch- xl f28p65x

Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: TMDXIDDK379D, C2000WARE

Hi,
I'm using the launch-xl f28p65x board with a DRV8323H. My goal is to control a BLDC motor with QEP position encoder using the fcl example.
I have noticed the following example: "C:\ti\c2000\C2000Ware_MotorControl_SDK_5_01_00_00\solutions\tmdxiddk379d\f28p65x\ccs\sensored_foc".
This example is for a different board and I'm having a hard time doing the migration.

although I succeed running the epwm simple examples and measuring the desired pwm using an oscilloscope, when I try using the example above with BUILDLEVEL being FCL_LEVEL1
I can't get the epwm 1-3 to work (GPIOs 0-5). EPWM5 seems to be working fine (GPIOs 8-9)

the only change I did to the code is setting the enableflag to true. what else should I do? any advice would be much appreciated.
Thanks.

  • Hi Shay,

    Yes, that example is designed based on the P65x Control Card with the high voltage IDDK. Since you are using a LaunchPad, you need to change the PWM definition in "configureGPIO()" to match the PWM signal pins you are using.

    Thanks,

    Jiaxin

  • Could you please elaborate? I looked at  "configureGPIO()"  and it seems like everything is already set correctly (EPWM1_A is at GPIO 0, EPWM1_B is at GPIO 1...)  but still I can't see the PWM signal at all.

  • Hi Shay,

    Are you using the 6 PWM signals at lower site (closer to the EtherCAT connector)? If so, the corresponding PWMs are PWM2A/B (GPIO2/3), PWM1A/B(GPIO0/1), PWM8A/B(GPIO99/75). In the example, the PWM modules are PWM1, 2, and 3. Thus, you need to modify in software accordingly.

    Thanks,

    Jiaxin

  • Hi Jiaxin,
    Thank you for your help.
    I tried replacing the GPIOs exactly to the ones you mentioned, yet I still can only see the EPWM5 & EPWM11 changing in debug mode registers window and on scope measurement. I assume there is something else that requires modification because the example is not dedicated to this specific board. as I mentioned before, while using the simple EPWM examples that is dedicated for my board (launch-xl f28p65x) everything worked just fine.
    any further ideas?
    Thanks again,
    Shay.

  • Hi Shay,

    In the previous post, I have offered you enough information to debug your customized software project based on the example project. We provide reference design as examples of how to use TI silicon. You will have to do your evaluation on feasibility and design. We cannot provide support and detailed engineering consulting as to how to do it. 

    Thanks,

    Jiaxin