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.

把一个数组定义在指定的数据存储空间上报错



// *.c //
#pragma DATA_SECTION (Output0, "ZONE7DATA0")
float Output0[2000]={0};
#pragma DATA_SECTION (Output1, "ZONE7DATA1")
float Output1[2000]={0};

// *.cmd //
MEMORY
{
  PAGE 1: 
   ZONE7B0     : origin = 0x20FC00, length = 0x008000     /* XINTF zone 7 - data space */
   ZONE7B1     : origin = 0x22FC00, length = 0x008000 
}

SECTIONS
{
  ZONE7DATA0        : > ZONE7B0,    PAGE = 1
   ZONE7DATA1        : > ZONE7B1,    PAGE = 1
}

出现如下错误:#10099-D</a>  program will not fit into available memory.  run placement with alignment/blocking fails for section ".ebss" size 0x1080 page 1.  Available memory ranges: RAML4        size: 0x1000       unused: 0x1000       max hole: 0x1000        28335_RAM_lnk.cmd        /ADCSAOPIN        line 135        C/C++ Problem
#10099-D</a>  program will not fit into available memory.  run placement with alignment/blocking fails for section "ZONE7DATA" size 0x1f60 page 1.  Available memory ranges: ZONE7B       size: 0x400        unused: 0x400        max hole: 0x400        28335_RAM_lnk.cmd        /ADCSAOPIN        line 165        C/C++ Problem