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

Running Code From RAM

Any application code can be either placed in RAM or Flash for storage and run time execution. Placing the code in flash memory allows to store a larger application size since flash is typically bigger than RAM in terms of memory, but executing the code from flash invokes additional wait states while performing read-write operations. Since executing the code from RAM becomes the faster alternative, a solution involving storage of code in flash memory and executing the code from RAM becomes the optimal solution.

TIDM-02012 Booting From Flash Figure 3-6 Booting From Flash

If the option to boot from flash is selected as shown in Figure 3-6, the code is stored in flash. To copy and run from RAM, by right clicking on the subsystem block and selecting Block Parameters (Subsystem). Select the Code Generation tab and configure the Memory section for execution functions: as code_ramfuncs from the drop-down menu as shown in Figure 3-7. It is to be noted that if the subsystem is larger than the available memory on the device, compile time error is shown showcasing not enough memory.

TIDM-02012 Running Code From RAM Figure 3-7 Running Code From RAM