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.

c6455平台DSP/BIOS下使用#pragma的问题



程序猿们好,在DSP/BIOS下会自动生成.cmd文件,但是我自己也写了一个c6455.cmd,内容如下

-l mygpiocfg.cmd

SECTIONS
{
    .SEG0:           {}>  DDR2
}

并且选择了Exclude from Build.

DSP/BIOS自动生成的mygpiocfg.cmd没有任何设置。

在我的main函数里面有这样一句话:

#pragma DATA_SECTION(data,".SEG0");
char data[]={0x00,0x00,0x00};

但是我查data的地址时,却发现他并不在DDR2里面,这是肿么搞得?

tcf里面MEM下有DDR2内存块,起始地址为0xe0000000

build时没有任何错误,只是有个警告,如下:
#10247-D creating output section ".SEG0" without a SECTIONS specification

求怎么解决。