嵌入式开发者社区

标题: 怎样define CPU1 或 CPU2 ? [打印本页]

作者: chendelta    时间: 2018-10-5 16:14
标题: 怎样define CPU1 或 CPU2 ?
    使用28377D开发板,TL-XDS100V2仿真器,CCSv8.2。

    按照《TMS320F28377开发例程使用手册》2.1节操作(只是把单核对应的文件修改为双核的文件),编辑了main.c,Build Project, 弹出
29个Error,其中第1个为:"You must define CPU1 or CPU2 in your project properties.  Otherwise, the offsets in your header files will be inaccurate." 应该是来源于 F2837xD_device.h中的

#if (!defined(CPU1) && !defined(CPU2))
#error "You must define CPU1 or CPU2 in your project properties.  Otherwise, the offsets in your header files will be inaccurate."
#endif

    请问,我应该怎样指定CPU?

    另外,2.1节例子中 main.c 的第1行: #include "DSP28x_Project.h",经查,光盘文件中没有,找到个"F28x_Project.h",我用的这个。

    谢谢!


作者: tronlong-gxd    时间: 2018-10-8 08:52
提示: 作者被禁止或删除 内容自动屏蔽
作者: chendelta    时间: 2018-10-8 17:22
tronlong-gxd 发表于 2018-10-8 08:52
您好:
       双核的使用建议您使用IPC双核组件,可以参考该例程,新建工程和28377S是一样的。 ...

谢谢!我在led那个project这么试了一下:

project右键properties,
Build-C2000 Compiler-Predefined Symbols, 加一个"CPU1";

解决了要求define cpu的问题,但是出来很多警告:
“<Linking>
warning #10247-D: creating output section ".text" without a SECTIONS specification
warning #10247-D: creating output section ".cinit" without a SECTIONS specification
warning #10247-D: creating output section "codestart" without a SECTIONS specification
......

并且debug的时候显示
“Break at address "0x3fe493" with no debug information available, or outside of program code.”

我再试试。




欢迎光临 嵌入式开发者社区 (https://51dsp.net/) Powered by Discuz! X3.4