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.

_mfence is undefined,ccs6.2,compiler7.4.20,TCI6638K2K

你好!

我用的是evm6638k2k,CCSv6.2.0,MCSDK3.1.4.7,编译器试过v7.4.20和v8.1.3(都是现在最新的v7.4.x和v8.1.x版本),工程使用了CSLv2.1.1.0,在编译时遇到很多_mfence is undefined的问题,都是CSL里面调用的,如csl_cacheAux.h里的1017行。

我查了下,_mfence声明在编译器的include目录下的c6x.h里,但用#if defined(_TMS320C6600)括起来了。如果工程选芯片TMS320C6670的话,该编译条件就为true,如果选TCI6638K2K,则false,然后就上面的undefined错误了。试过在工程编译选项添加predefine symbol _TMS320c6600,依然无效。

诸如此类,好些指令都遇到undefined问题。

v2.1.1.0的CSL写明支持K2K的,而且这个指令不是所有c66x的corepac都支持的吗?

怎么解决这个CSL的问题?