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.

【急】求工程师帮忙解释关于错误:#10247-D creating output section "PacketData" without a SECTIONS

我在cfg文件进行了如下配置:

Program.sectMap[".PacketData"] = "DDR3";

在主函数之前写了如下

#pragma DATA_SECTION(imdata0,"PacketData")
char imdata0[IMLength * IMWidth];

为什么编译还是出现如下错误:

#10247-D creating output section "PacketData" without a SECTIONS

  • #pragma DATA_SECTION(imdata0,"PacketData")修改在PacketData前面加一个“.”

    确认platform中定义了一个DDR3 memory段。

  • 非常感谢Andy Yin1 ,,原来是这么粗心大意的失误。。。

  • Andy Yin1 你好

        我又遇到一个疑问,在我正确指定PacketData到DDR3然后把imdata分配到PacketData以后,在运行时我查看imdata内存,但是它的地址和某些系统内存区好像重复了,如下:

    请问一下这在运行时会不会出错?为什么系统分配内存时没有避开这些区呢?

x 出现错误。请重试或与管理员联系。