dsp28377:error #10099D:program will not fit into available memory.
.text太大,没有剩余的空间了
MEMORY
{
PAGE 0 :
/* BEGIN is used for the "boot to SARAM" bootloader mode */
BEGIN : origin = 0x000000, length = 0x000002
RAMM0 : origin = 0x000122, length = 0x0005DE
RAMD0 : origin = 0x00C000, length = 0x001000
RAMLS0 : origin = 0x008000, length = 0x002B00
// RAMLS1 : origin = 0x008800, length = 0x000800
// RAMLS2 : origin = 0x009000, length = 0x000800
// RAMLS3 : origin = 0x009800, length = 0x000800
// RAMLS4 : origin = 0x00A000, length = 0x000B00
RESET : origin = 0x3FFFC0, length = 0x000002
PAGE 1 :
BOOT_RSVD : origin = 0x000002, length = 0x000120 /* Part of M0, BOOT rom will use this for stack */
RAMM1 : origin = 0x000700, length = 0x000400 /* on-chip RAM block M1 */
.........
RAMGS10 : origin = 0x016000, length = 0x001000
RAMGS11 : origin = 0x017000, length = 0x001000
CANA_MSG_RAM : origin = 0x049000, length = 0x000800
CANB_MSG_RAM : origin = 0x04B000, length = 0x000800
}
SECTIONS
{
codestart : > BEGIN, PAGE = 0
ramfuncs : > RAMM0 PAGE = 0
.text : >>RAMM0 | RAMD0 | RAMLS0 , PAGE = 0//这里也要改,把不要的段去掉
//.text : >>RAMM0|RAMD0|RAMLS0|RAMLS1|RAMLS2|RAMLS3|RAMLS4, PAGE=0
别的段超出了就修改超出的段
.cinit : > RAMM0, PAGE = 0
.pinit : > RAMM0, PAGE = 0
.switch : > RAMM0, PAGE = 0
.....
}
我的问题就这样解决了。