SDAA476 July 2026 AM13E23019
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);
}