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.

dsp28377D新建工程,you must define CPU1 or CPU2 in your project properties问题

Description Resource Path Location Type
#35 #error directive: "You must define CPU1 or CPU2 in your project properties. Otherwise, the offsets in your header files will be inaccurate." F2837xD_device.h /28377D_OSTack/include line 18 C/C++ Problem

  28377d自己建立了工程,提示上边错误怎么解决啊

  • 您好,
    通过project properties->Build->C2000 Compiler找到Predefined Symbols,具体可以参考以下帖子:
    e2e.ti.com/.../441078

  • Description Resource Path Location Type
    #35 #error directive: "You must define CPU1 or CPU2 in your project properties. Otherwise, the offsets in your header files will be inaccurate." F2837xD_device.h /28377D_OSTack/include line 18 C/C++ Problem

    28377d自己建立了工程,提示上边错误怎么解决啊”
    Eric:
    一方面可以在工程属性里面的编译选项中的predefined 中去设置define一个CPU1, 或CPU2.
    或是你应该也可以在主文件里面的define 一下CPU1.
    #define CPU1 1.
    因为F2837XD有两个内核,CPU1和CPU2,而工程里面做了一些兼容性配置,让这个工程既可以用于CPU1,也可以用于CPU2,只是有少许区别,所以通过预编译的方式去区别。