ZHDA243 July   2026 AM13E23019

 

  1.   1
  2.   摘要
  3.   商标
  4. 1简介
    1. 1.1 TI AM13E230x 简介
    2. 1.2 TI MCU 的 AI 工具链简介
  5. 2详细说明
    1. 2.1 EPI 的 Sysconfig 设置
      1. 2.1.1 刷新计数
      2. 2.1.2 EPI 时钟分频器
    2. 2.2 用于外部 SRAM 执行的 AI 模型库部署
      1. 2.2.1 第 1 步:将 AI “.a”文件添加到 CCS 工程中
      2. 2.2.2 第 2 步:链接器脚本更改 (`linker_m33_ti_arm_clang.cmd`)
      3. 2.2.3 'main.c' 变更
        1. 2.2.3.1 包含头文件
        2. 2.2.3.2 声明由链接器生成的符号
        3. 2.2.3.3 memcpy 函数
        4. 2.2.3.4 将条目函数放在 SDRAM 部分中
        5. 2.2.3.5 Main() 引导顺序
      4. 2.2.4 第 4 步:CSS 项目验证
    3. 2.3 硬件设计最佳实践
  6. 3总结
  7. 4参考资料

将条目函数放在 SDRAM 部分中

在演示项目中,“ExecuteFromSDRAM()”是从 SDRAM 执行并调用 "arm_dot_prod_f32()" 的函数。该函数通过“__attribute__”放置在“.CS1_EXECUTE”中。

/* 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);
}