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.

cmd问题求助 >> cannot allocate .stack in DATA



>> cannot allocate .stack in DATA (page 1)

>> errors in input - ./Debug/svpwm111.out not built

我连接时出现这个问题

应该是cmd的问题吧?

MEMORY

{

      PAGE 0: VECS: origin = 0x8000,  length 0x040

      PAGE 0: PROG: origin = 0x8860,  length 0x6000

      PAGE 1: B0  : origin = 0x200,   length 0x100

      PAGE 1: B1  : origin = 0x300,   length 0x100

      PAGE 1: DATA: origin = 0x0860,  length 0x700

}

SECTIONS

{

      .vectors  : {}  >VECS PAGE 0                 /* 中断向量表 */

      .text     : {}  >ROG PAGE 0         /* 可执行代码和字符串 */

      .cinit    : {}  >ROG PAGE 0

      .data     : {}  >DATA PAGE 1        /* 初始化变量和常数表 */

      .bss      : {}  >DATA PAGE 1                        /* 保留全局变量和静态变量空间 */

      .const    : {}  >DATA PAGE 1                        /* 字符串和switch表 */    

          .switch   : {}  >ROG PAGE 0         /* 包含.switch语句建立的表格 */

      .stack         : {}  >DATA PAGE 1         /* 为系统堆栈分配存储器 */

      .system   : {}  >DATA PAGE 1                        /* 为动态存储器函数分配存储器空间 */

}