SDAA476 July   2026 AM13E23019

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 TI AM13E230x Introduction
    2. 1.2 AI Toolchain for TI MCU Introduction
  5. 2Detailed Description
    1. 2.1 Sysconfig Settings for EPI
      1. 2.1.1 Refresh Count
      2. 2.1.2 EPI Clock Divider
    2. 2.2 AI Model Library Deployment for External SRAM Execution
      1. 2.2.1 Step 1: Add the AI “.a” File to the CCS Project
      2. 2.2.2 Step 2: Linker Script Change (`linker_m33_ti_arm_clang.cmd`)
      3. 2.2.3 'main.c' Changes
        1. 2.2.3.1 Include Headers
        2. 2.2.3.2 Declare Linker-Generated Symbols
        3. 2.2.3.3 memcpy Function
        4. 2.2.3.4 Place the Entry Function in the SDRAM Section
        5. 2.2.3.5 main() Boot Sequence
      4. 2.2.4 Step 4: CSS Project Validation
    3. 2.3 H/W Design Best Practices
  6. 3Summary
  7. 4References

Place the Entry Function in the SDRAM Section

In the demo project, "ExecuteFromSDRAM()" is the function that executes from SDRAM an dcall s"arm_dot_prod_f32()." The function is placed in ".CS1_EXECUTE through "__attribute__."

/* This function executes from SDRAM. memcpy() must be called first. */
__attribute__((section(".CS1_EXECUTE"), __noinline__))
void ExecuteFromSDRAM(void)
{
    LOG("Executing from SDRAM!\r\n");

    /* Call arm_dot_prod_f32 — this function is also in .sdram_code (SDRAM).
     * Input data lives in RAM_S and is accessed through the normal data bus.  */
    arm_dot_prod_f32(App_DotProd_SrcA,
                     App_DotProd_SrcB,
                     APP_DOT_PROD_SIZE,
                     &App_DotProd_Result);
}