SPRAD20 March   2022 AM2634 , AM2634-Q1


  1.   Trademarks
  2. 1Introduction
  3. 2A Step-by-Step Guide to Running a Traction Inverter
    1. 2.1 Create Real Time Debug Interface
      1. 2.1.1 Confirm CCS Features
      2. 2.1.2 Create Target Configuration File
      3. 2.1.3 Add Serial Command Monitor Software
      4. 2.1.4 Launch Real Time Debug
    2. 2.2 Configure Control Peripheral and ADC Interrupt With Sysconfig
      1. 2.2.1 Generate PWM for Time Reference
      2. 2.2.2 Synchronize ADC Sampling and Interrupt Service Routine
      3. 2.2.3 Configure DMA for Resolver Excitation via DAC
    3. 2.3 Configure Gate Driver Interface With MSPI
      1. 2.3.1 Confirm Control Card Hardware Configuration for Gate Drivers
      2. 2.3.2 Configure MCSPI for UCC5870 Gate Drivers
      3. 2.3.3 Initialize UCC5870 Gate Drivers
    4. 2.4 Get Samples From ADC and Read Samples Via CCS
      1. 2.4.1 Register and Enable Interrupt
      2. 2.4.2 Add Log Code to Read Samples in Graph at Fixed Rate
      3. 2.4.3 Read ADC Samples in Expression and Graph Windows
    5. 2.5 Generate Space Vector PWM and Drive Motor in Open Loop
      1. 2.5.1 Setup SVPWM Generator Inputs
      2. 2.5.2 Read SVPWM Duty Cycles in Graph Window
      3. 2.5.3 Power Up Inverter and Spin Motor in Open Loop
    6. 2.6 Close Current Loop With Mock Speed
      1. 2.6.1 Add Transformations and Read Id-Iq in Open Loop
      2. 2.6.2 Add Controllers to Close Current Loop
      3. 2.6.3 Read Id-Iq to Close Current Loop
    7. 2.7 Add Software Resolver to Digital Converter
      1. 2.7.1 Generate Excitation for Resolver Hardware
      2. 2.7.2 Add Resolver Software
      3. 2.7.3 Read Resolver Software Outputs
    8. 2.8 Close Speed Loop With Rotor Speed
      1. 2.8.1 Add Speed Loop Controllers
      2. 2.8.2 Add Speed Loop Demo Program
      3. 2.8.3 Read Motor Speed from Graph Window
  4. 3A Brief Guide to Code Migration
    1. 3.1 SoC Architecture Overview
    2. 3.2 SDK Resources Overview
    3. 3.3 Code Migration From AM24
    4. 3.4 Code Migration From C28
  5. 4Summary
  6. 5References

Create Target Configuration File

For a control card in Figure 2-2, it offers both JTAG and UART ports in one USB port. Details on hardware connection can be found in AM263x Control Card User's Guide. It is necessary to create a target configuration file for the debug ports. A step-to-step guide is given in screen shots from Figure 2-3 to Figure 2-10. Briefly, a target configuration file is created and then configured with both JTAG and UART. The UART COM Port in Figure 2-10 should match PC Device Manager COM Port for JTAG probe Application/User UART. The Baud Rate in Figure 2-10 should be consistent with SoC UART Baud Rate configured in next step.

GUID-20211120-SS0I-DCT4-7WXT-6XHBSF92QJXW-low.png Figure 2-2 AM263x Control Card
GUID-20220304-SS0I-X9RH-P29W-GL28PXPK7MXJ-low.png Figure 2-3 Create New Target Configuration File
GUID-20220304-SS0I-RZLP-KB28-H25NDP04J9XW-low.png Figure 2-4 Select JTAG Connection and Device
GUID-20220304-SS0I-WDBF-F9LB-CHNDDXFH7HLJ-low.png Figure 2-5 Add UART Communication Port
GUID-20220304-SS0I-0H5M-HZ4N-RSKWXMCG0J2W-low.png Figure 2-6 Open Advanced Target Configuration
GUID-20220304-SS0I-BTNN-9V9N-7J05T3WGQKTD-low.png Figure 2-7 Add Component
GUID-20220304-SS0I-30K2-Q6DJ-TP4QDSZXNMXV-low.png Figure 2-8 Select CPU Properties
GUID-20220304-SS0I-1L07-QGWN-3VWJC20CFCCQ-low.png Figure 2-9 Find XDS110 UART COM Port
GUID-20220304-SS0I-STHT-9346-8TNCM87D1MMK-low.png Figure 2-10 Update CPU Properties in Advanced Target Configuration