SPRADI0A July   2024  – November 2024

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 Getting Started
  5. 2Model-Based Design of eCompressor
    1. 2.1 General Texas Instruments High Voltage Evaluation (TI HV EVM) User Safety Guidelines
    2. 2.2 Block Diagram
    3. 2.3 Hardware, Software and Testing Requirements
      1. 2.3.1 Hardware setup
      2. 2.3.2 Software setup
      3. 2.3.3 Test Procedure
  6. 3 Simulink Configuration Settings
    1. 3.1 Simulink Tool Optimization
      1. 3.1.1 Optimum Code Generation
    2. 3.2 C2000 Specific Optimization
      1. 3.2.1 Using TMU Through Simulink
      2. 3.2.2 Using Software Libraries Through Simulink
      3. 3.2.3 Running Code From RAM
    3. 3.3 Performance Comparison
  7. 4 Profiling Using Simulink
    1. 4.1 Processor-in-Loop (PIL) Method
    2. 4.2 C2000 Timer-Based Profiling
    3. 4.3 Code Composer Studio tools
  8. 5Summary
  9. 6Revision History

C2000 Specific Optimization

To ensure that the generated code is optimally executed on the C2000 MCU, compiler settings needs to be correctly configured beyond the Simulink specific optimization, which are hardware specific to the C2000 MCUs. As discussed in Section 3.1, if the build configuration setting is correctly configured as Faster Runs, the optimization level (-O2) will be invoked while running the code on the hardware. Additionally, if manually the optimization level is to be changed, the Toolchain details section in the Code generation tab of hardware settings allows you to configure the compiler settings by selecting build configuration as Specify. Compiler optimization settings are available in the C compiler settings as shown in Figure 3-3.

TIDM-02012 Custom Compiler Optimization
                    Configuration Figure 3-3 Custom Compiler Optimization Configuration