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.

CCS/LAUNCHXL-F28377S: PWM Sample Code and Document

Part Number: LAUNCHXL-F28377S

Tool/software: Code Composer Studio

Hi All,

I am looking for sample code and document about PWM or HRPWM for the LAUNCHXL-F28377S (TMS320F28377S).

Anyone know about that?

Thanks and Regards,

S.Takano

  • Hi Takano-san,

    Takano said:
    I am looking for sample code and document about PWM or HRPWM for the LAUNCHXL-F28377S (TMS320F28377S).

    Simply download controlSuite and navigate to:

    C:\ti\controlSUITE\device_support\F2837xS\v210\F2837xS_examples_Cpu1

    You can also navigate through controlSuite GUI. As for the launchpad documentation, schematics, PCB files you can navigate to:

    C:\ti\controlSUITE\development_kits\LAUNCHXL-F28377S\HwDevPkg

    Also, do checkout:

    Regards,

    Gautam

  • Hi Iyer-san,

    Thank you very much for your quick replying.
    I will check it in tomorrow (Today's working time is about to be end in now :)

    Again, thanks for your advice!

    Best Regards,
    S.Takano
  • Cool! No problem.
  • Hi Takano-san,

    As far as the documentation, you can find it on the TMS320F28377S product landing page.  For SW configuration of the ePWM, you will want to look at the technical reference manual (spruhx5d) - ePWM chapter. 

  • Dear -san,

    Thank you very much for your advice, I'd like to enter from sample code. I want to check detail of te PWM after understand basics on the code. Howeverm your link is helpful, I have downloaded tech report pdf file, again thank you!

    Best Regards,

    S.Takano

  • Dear Iyer-san,

    I downloaded the SUITE and import it to the CCS, then it shows almost file is not there, alert is highlighted. And of course I coid not build it with following error messages;
    **** Build of configuration CPU1_RAM for project epwm_deadband_cpu01 ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k all
    gmake: *** No rule to make target 'C:/Users/J100044214/workspace_v7/F2837xS_common/source/F2837xS_CodeStartBranch.asm', needed by 'F2837xS_CodeStartBranch.obj'.
    gmake: *** No rule to make target 'C:/Users/J100044214/workspace_v7/F2837xS_common/source/F2837xS_DefaultISR.c', needed by 'F2837xS_DefaultISR.obj'.
    gmake: *** No rule to make target 'C:/Users/J100044214/workspace_v7/F2837xS_common/source/F2837xS_EPwm.c', needed by 'F2837xS_EPwm.obj'.
    gmake: *** No rule to make target 'C:/Users/J100044214/workspace_v7/F2837xS_headers/source/F2837xS_GlobalVariableDefs.c', needed by 'F2837xS_GlobalVariableDefs.obj'.
    gmake: *** No rule to make target 'C:/Users/J100044214/workspace_v7/F2837xS_common/source/F2837xS_Gpio.c', needed by 'F2837xS_Gpio.obj'.
    gmake: *** No rule to make target 'C:/Users/J100044214/workspace_v7/F2837xS_common/source/F2837xS_PieCtrl.c', needed by 'F2837xS_PieCtrl.obj'.
    gmake: *** No rule to make target 'C:/Users/J100044214/workspace_v7/F2837xS_common/source/F2837xS_PieVect.c', needed by 'F2837xS_PieVect.obj'.
    gmake: *** No rule to make target 'C:/Users/J100044214/workspace_v7/F2837xS_common/source/F2837xS_SysCtrl.c', needed by 'F2837xS_SysCtrl.obj'.
    gmake: *** No rule to make target 'C:/Users/J100044214/workspace_v7/F2837xS_common/source/F2837xS_usDelay.asm', needed by 'F2837xS_usDelay.obj'.
    gmake: *** No rule to make target 'C:/Users/J100044214/workspace_v7/F2837xS_examples_Cpu1/epwm_deadband/cpu01/epwm_deadband_cpu01.c', needed by 'epwm_deadband_cpu01.obj'.
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

    Any suggest is welcome.
    Thanks and Regards,
    S.Takano
  • I used file set in
    C:\ti\controlSUITE\device_support\F2837xS\v210\F2837xS_examples_Cpu1

    Best,
    S.Takano
  • Try importing a controlSuite project as: Project -> Import CCS Project -> Browse -> Select the example you need to import
    Also, tick the Copy project to workspace option.
  • Hi,

    I tried to ways to import, your way and file->import, there is actually no file addressed by error message, I checked in the folder.

    Regards,
    S.Takano
  • OK, clear your current workspace and alternately try importing from Resource Explorer.
    Go to, View -> Resource Explorer -> Software -> C2000Ware -> Devices
  • Iyer-san,

    Thank you for your advice, I will try it in tomorrow (5:17PM in Japan now).

    Best Regards,
    S.Takano
  • Hi,

    Bellow waring is displayed at opening the explorer:

    Warning! Not connected to the cloud server. Working in offline mode.

    I have no idea to get necessary files...

    Best Regards,

    S.Takano

  • I hope you've updated your CCS v7 to CCSv7.1
    I faced the same issue too.
  • Hi,

    I use Version: 7.1.0.00016 in now.
    Is there newer version? I want to try.

    Best Regards,
    S.Takano
  • Nope you should be able to connect to the cloud server then! Not sure what's happening, try an offline download then:
    www.ti.com/.../C2000Ware
  • Hi
    It might be issue on back-end of network on our company.
    I try download offline from now.

    Again, Thank you very much for your advice!

    Best Regards,
    S.Takano
  • Do let us know if this resolves your issue.
  • Hi,

    I tried to install c2000ware after offline downloading, and check a build as follows;

    Exapmle_2823xGpioSetup

    Exapmle_2823xGpioToggle

    Exapmle_2823xHRPWM

    Exapmle_2823xHRPWM_SFO

    Exapmle_2823xHRPWM_SFO_V5

    Exapmle_2823xHRPWM_slider

    Exapmle_2823xHRPWM_Symmetric_Duty_Cycle_SFO_V5

    hrpwm_deadband_sfo_cpu01

    hrpwm_ex1_duty_sfo_v8

    hrpwm_ex2_prdupdowm_sfo_v8

    All above are "Build Finished.", passed the compilation.

    But I feel there are many libraries, I want a single library as uniform.

    Bets Regards,

    S.Takano