1:链接文件定义section:
TCM(rwx): ORIGIN = xxx, LENGTH = yyy
.tcm_section :
{
.= ALIGN(4);
*.0 (.tcm_section)
} > TCM AT > DDR
2:代码中配置、使能TCM并进行代码重定向
3:函数使用__attribute__((section(".tcm_section")))
1:链接文件定义section:
TCM(rwx): ORIGIN = xxx, LENGTH = yyy
.tcm_section :
{
.= ALIGN(4);
*.0 (.tcm_section)
} > TCM AT > DDR
2:代码中配置、使能TCM并进行代码重定向
3:函数使用__attribute__((section(".tcm_section")))