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.
blankman 说:两种方案:1、每次操作通信用共享内存时刷 cache;2、设置shared memory 的某段范围为 cache disable
查了好久,没有查到相应的函数,麻烦给个例子
#1. Cache同步操作函数:
a. DSP/BIOS里提供了API。
b. Starterware(http://www.ti.com/tool/starterware-dsparm)提供了API:C6748_StarterWare_1_20_03_03\system_config\c674x\cache.c
#2. 通过设置MARn寄存器可控制某段地址不被Cache,每个MAR寄存控制16MByte空间,寄存器地址参考文档108页:http://www.ti.com/litv/pdf/sprufk5a
4.4.4 Memory Attribute Registers (MARn)
官网产品网页提供的下载链接:
http://www.ti.com/tool/starterware-dsparm
TI的wiki上也有下载链接及使用说明等:
http://processors.wiki.ti.com/index.php/StarterWare