This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
在文档《https://www.ti.com.cn/cn/lit/ug/sprug82a/sprug82a.pdf》的
2.7 Changing Cache Configuration During Run-Time
章节中,提到了运行中改变cache配置的方法,但是里面提供的是一个思路,实际拷贝出来是无法编译的。
请有实现过的专家,给个能编译执行的参考例子,万分感谢!!
主要问题点是:
1、代码运行中获得函数地址、函数长度
2、运行中获得段如.external的地址、段长度
3、DAT_xxx相关函数的实现
笨办法:编译后获得1、2的相关数据,在程序中写数组记录,再重新编译
有聪明的方法吗?
可以考虑用#progama伪指令把data/code分配到固定的地址。
#pragma CODE_SECTION (symbol , "section name ")
https://www.ti.com/lit/ug/sprui04b/sprui04b.pdf
cmd文件里有union伪指令,可以让几个函数共用一段run address。请参考下面的汇编手册。
8.5.7 Using GROUP and UNION Statements
https://www.ti.com/lit/ug/sprui03b/sprui03b.pdf