程序中自定义的函数都出现如上图情况,当鼠标放在Lcdwritecom处时就出现error:cannot load from non-primitive location,请朋友们给帮忙解答一下!
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.
hongyue,
我在E2E论坛上找到相关的解答:
This message means that the expression tried to read and display data from the target where the type of the data is not a primitive type (char, short, int etc). For instance, "main" is of type "function pointer" so evaluating "*main" would be asking the debugger to display data of type "function" which doesn't make much sense and would return this error.
At least, that's what it's supposed to mean. If that doesn't make sense in your case, could you attach a small test program with the struct in question and show what evaluations incorrectly return that error message incorrectly?
即使当CCS准备去读这个函数的时候,这个函数的类型不是基本的类型,char,int等,所以导致错误。
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/3325/141182.aspx#141182
Eric