SPRUIQ5 May   2019 TMS320F280021 , TMS320F280021-Q1 , TMS320F280023 , TMS320F280023-Q1 , TMS320F280023C , TMS320F280025 , TMS320F280025-Q1 , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-Q1 , TMS320F28374D , TMS320F28374S , TMS320F28375D , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28376D , TMS320F28376S , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28378D , TMS320F28378S , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S

 

  1.   Introduction
    1.     Trademarks
    2.     DesignDRIVE IDDK Platform
  2. 1The Hardware Configuration
    1. 1.1 The DesignDRIVE Development kit (IDDK)
    2. 1.2 The Hardware Layout of IDDK
    3. 1.3 The IDDK Power Supplies
      1. 1.3.1 The Low-Voltage Power Domain
      2. 1.3.2 The High-Voltage Power Domain
  3. 2Setting Up the Test Hardware
    1. 2.1 Bringing Up the Board
  4. 3Setting Up the Software for IDDK Projects
    1. 3.1 Installing Code Composer and MotorControl SDK
    2. 3.2 Setting Up Code Composer Studio to Work With TMDXIDDK379D
    3. 3.3 Configuring a Project
    4. 3.4 Building and Loading the Project
    5. 3.5 Setting Up the Watch Window and Graphs
    6. 3.6 Running the Code
    7. 3.7 References

Running the Code

  1. Click Run in the Debug tab.
  2. In the Expressions window, set the EnableFlag to 1.
  3. NOTE

    The project runs and the values in the graphs and watch window continuously update. The following screen captures are typical CCS perspectives while using this project. You may resize the windows.

  4. When complete, click icon_run_sprui24.png(Run).
  5. Click Reset.
  6. Click icon_cpu_reset_sprui24.png(CPU Reset) to reset the processor.
  7. Click Run.
  8. Click icon_terminate_sprui24.png(Terminate) to terminate the debug session.
  9. NOTE

    This action halts the program and disconnects Code Composer from the MCU.

    ccs_ide_showing_edit_perspective_sprui24.pngFigure 3-8 CCS IDE Showing Edit Perspective

Terminating the debug session each time you change or run the code is unnecessary. Instead of terminating, do the following after rebuilding the project:

  1. Click Run.
  2. Click Reset.
  3. Click icon_cpu_reset_sprui24.png (CPU Reset).
  4. Click Run.
  5. Click icon_restart_sprui24.png(Restart).
  6. Enable real-time options.
  7. NOTE

    After completing the tests, end the debug session as follows.

  8. Disable real-time options.
  9. Reset the CPU.
  10. Terminate the project if you change the target device or the configuration from RAM to Flash or Flash to RAM and before shutting down CCS.
  11. Customize the project to meet your motor specifications and control options by editing the fcl_qep_f2837x_tmdxiddk_settings.h file at C:\ti\c2000\C2000Ware_MotorControl_SDK_1_00_00_00\solutions\tmdxiddk379d\f2837x\include
  12. NOTE

    Feel free to change the PWM switching frequency (ISR frequency). Choose the ISR frequency as a submultiple of the PWM frequency for testing purposes or as required.

  13. Open the lab manual in: C:\ti\c2000\C2000Ware_MotorControl_SDK_1_00_00_00\solutions\tmdxiddk379d\docs
  14. NOTE

    For any other MCU and/or project, refer to the lab manual within the project folder under \docs folder

  15. Start experimenting.