"../Source/28004x_generic_flash_lnk.cmd", line 77: error #10099-D: program will not fit into available memory. placement with alignment/blocking fails for section ".text" size 0x5a60 page 0. Available memory ranges:
FLASH_BANK0_SEC2 size: 0x1000 unused: 0x0 max hole: 0x0
FLASH_BANK0_SEC3 size: 0x1000 unused: 0x1 max hole: 0x1
FLASH_BANK0_SEC4 size: 0x1000 unused: 0x5 max hole: 0x5
FLASH_BANK0_SEC5 size: 0x1000 unused: 0x3 max hole: 0x3
FLASH_BANK0_SEC6 size: 0x1000 unused: 0x88c max hole: 0x88c
FLASH_BANK0_SEC7 size: 0x1000 unused: 0x6e0 max hole: 0x6e0
FLASH_BANK0_SEC8 size: 0x1000 unused: 0x1000 max hole: 0x1000
FLASH_BANK0_SEC9 size: 0x1000 unused: 0x1000 max hole: 0x1000
請問目前遇到了上述問題,但是他所寫出來.text需要的大小是0x5a60,但是我給予的空間有8個page = 0x8000的空間,應該是足夠的,但是還是會跳出這個問題
Susan Yang:请您给出一下您的CMD文件,谢谢
"../Source/28004x_generic_flash_lnk.cmd", line 77: error #10099-D: program will not fit into available memory. placement with alignment/blocking fails for section ".text" size 0x5a60 page 0. Available memory ranges:
FLASH_BANK0_SEC2 size: 0x1000 unused: 0x0 max hole: 0x0
FLASH_BANK0_SEC3 size: 0x1000 unused: 0x1 max hole: 0x1
FLASH_BANK0_SEC4 size: 0x1000 unused: 0x5 max hole: 0x5
FLASH_BANK0_SEC5 size: 0x1000 unused: 0x3 max hole: 0x3
FLASH_BANK0_SEC6 size: 0x1000 unused: 0x88c max hole: 0x88c
FLASH_BANK0_SEC7 size: 0x1000 unused: 0x6e0 max hole: 0x6e0
FLASH_BANK0_SEC8 size: 0x1000 unused: 0x1000 max hole: 0x1000
FLASH_BANK0_SEC9 size: 0x1000 unused: 0x1000 max hole: 0x1000
請問目前遇到了上述問題,但是他所寫出來.text需要的大小是0x5a60,但是我給予的空間有8個page = 0x8000的空間,應該是足夠的,但是還是會跳出這個問題
FANG DI:
回复 Susan Yang:
MEMORY
{
PAGE 0 :/* BEGIN is used for the "boot to Flash" bootloader mode*/
BEGIN: origin = 0x080000, length = 0x000002RAMM0: origin = 0x0000F5, length = 0x00030B
RAMLS0: origin = 0x008000, length = 0x000800RAMLS1: origin = 0x008800, length = 0x000800RAMLS2: origin = 0x009000, length = 0x000800RAMLS3: origin = 0x009800, length = 0x000800RAMLS4: origin = 0x00A000, length = 0x000800//RAMLS24: origin = 0x009000, length = 0x001800
RESET: origin = 0x3FFFC0, length = 0x000002
/* Flash sectors *//* BANK 0 */FLASH_BANK0_SEC0: origin = 0x080002, length = 0x000FFE /* on-chip Flash */FLASH_BANK0_SEC1: origin = 0x081000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC2: origin = 0x082000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC3: origin = 0x083000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC4: origin = 0x084000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC5: origin = 0x085000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC6: origin = 0x086000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC7: origin = 0x087000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC8: origin = 0x088000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC9: origin = 0x089000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC10 : origin = 0x08A000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC11 : origin = 0x08B000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC12 : origin = 0x08C000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC13 : origin = 0x08D000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC14 : origin = 0x08E000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC15 : origin = 0x08F000, length = 0x001000 /* on-chip Flash */
/* BANK 1 */FLASH_BANK1_SEC0: origin = 0x090000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC1: origin = 0x091000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC2: origin = 0x092000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC3: origin = 0x093000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC4: origin = 0x094000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC5: origin = 0x095000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC6: origin = 0x096000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC7: origin = 0x097000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC8: origin = 0x098000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC9: origin = 0x099000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC10 : origin = 0x09A000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC11 : origin = 0x09B000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC12 : origin = 0x09C000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC13 : origin = 0x09D000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC14 : origin = 0x09E000, length = 0x001000 /* on-chip Flash */FLASH_BANK1_SEC15 : origin = 0x09F000, length = 0x001000 /* on-chip Flash */
PAGE 1 :
BOOT_RSVD: origin = 0x000002, length = 0x0000F3/* Part of M0, BOOT rom will use this for stack */RAMM1: origin = 0x000400, length = 0x000400/* on-chip RAM block M1 */
RAMLS5: origin = 0x00A800, length = 0x000800RAMLS6: origin = 0x00B000, length = 0x000800RAMLS7: origin = 0x00B800, length = 0x000800
RAMGS0: origin = 0x00C000, length = 0x002000RAMGS1: origin = 0x00E000, length = 0x002000RAMGS2: origin = 0x010000, length = 0x002000RAMGS3: origin = 0x012000, length = 0x002000
}
SECTIONS
{codestart: > BEGIN,PAGE = 0, ALIGN(4)///.text: >>FLASH_BANK0_SEC1 | FLASH_BANK0_SEC2 | FLASH_BANK0_SEC3,PAGE = 0, ALIGN(4).text: >> FLASH_BANK0_SEC5 | FLASH_BANK0_SEC6 | FLASH_BANK0_SEC7 | FLASH_BANK0_SEC8 | FLASH_BANK0_SEC9 | FLASH_BANK0_SEC10| FLASH_BANK0_SEC11| FLASH_BANK0_SEC12,PAGE = 0, ALIGN(4)
.cinit: > FLASH_BANK0_SEC1,PAGE = 0, ALIGN(4).pinit: > FLASH_BANK0_SEC1,PAGE = 0, ALIGN(4).switch: > FLASH_BANK0_SEC1,PAGE = 0, ALIGN(4).reset: > RESET,PAGE = 0, TYPE = DSECT /* not used, */
.cio: > RAMLS0,PAGE = 0.stack: > RAMM1,PAGE = 1.ebss: > RAMLS5,PAGE = 1.esysmem: > RAMLS5,PAGE = 1.econst: > FLASH_BANK0_SEC7 ,PAGE = 0, ALIGN(4)
ramgs0: > RAMGS0,PAGE = 1ramgs1: > RAMGS1,PAGE = 1
.TI.ramfunc: LOAD = FLASH_BANK0_SEC0,RUN = RAMLS0 | RAMLS1 | RAMLS2 |RAMLS3,LOAD_START(_RamfuncsLoadStart),LOAD_SIZE(_RamfuncsLoadSize),LOAD_END(_RamfuncsLoadEnd),RUN_START(_RamfuncsRunStart),RUN_SIZE(_RamfuncsRunSize),RUN_END(_RamfuncsRunEnd),PAGE = 0, ALIGN(4)
}
/*
//===========================================================================
// End of file.
//===========================================================================
*/
"../Source/28004x_generic_flash_lnk.cmd", line 77: error #10099-D: program will not fit into available memory. placement with alignment/blocking fails for section ".text" size 0x5a60 page 0. Available memory ranges:
FLASH_BANK0_SEC2 size: 0x1000 unused: 0x0 max hole: 0x0
FLASH_BANK0_SEC3 size: 0x1000 unused: 0x1 max hole: 0x1
FLASH_BANK0_SEC4 size: 0x1000 unused: 0x5 max hole: 0x5
FLASH_BANK0_SEC5 size: 0x1000 unused: 0x3 max hole: 0x3
FLASH_BANK0_SEC6 size: 0x1000 unused: 0x88c max hole: 0x88c
FLASH_BANK0_SEC7 size: 0x1000 unused: 0x6e0 max hole: 0x6e0
FLASH_BANK0_SEC8 size: 0x1000 unused: 0x1000 max hole: 0x1000
FLASH_BANK0_SEC9 size: 0x1000 unused: 0x1000 max hole: 0x1000
請問目前遇到了上述問題,但是他所寫出來.text需要的大小是0x5a60,但是我給予的空間有8個page = 0x8000的空間,應該是足夠的,但是還是會跳出這個問題
FANG DI:
回复 FANG DI:
目前試過將目前BANK0的SEC改成這樣
原本
FLASH_BANK0_SEC0: origin = 0x080002, length = 0x000FFE /* on-chip Flash */FLASH_BANK0_SEC1: origin = 0x081000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC2: origin = 0x082000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC3: origin = 0x083000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC4: origin = 0x084000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC5: origin = 0x085000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC6: origin = 0x086000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC7: origin = 0x087000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC8: origin = 0x088000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC9: origin = 0x089000, length = 0x001000 /* on-chip Flash */
修改過後
FLASH_BANK0_SEC0: origin = 0x080002, length = 0x000FFE /* on-chip Flash */FLASH_BANK0_SEC1: origin = 0x081000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC2: origin = 0x082000, length = 0x001000 /* on-chip Flash */FLASH_BANK0_SEC3: origin = 0x083000, length = 0x005000 /* on-chip Flash */FLASH_BANK0_SEC8: origin = 0x088000, length = 0x001000 /* on-chip Flash */
再把SECTIONS裡面的.text改成這樣就不會報錯
.text: >> FLASH_BANK1_SEC2 | FLASH_BANK1_SEC3 ,PAGE = 0, ALIGN(4)
順便問一下這樣設定是正常的嗎?