Part Number:LAUNCHXL-CC1310
--retain=g_pfnVectors
--stack_size=1024/* C stack is also used for ISR stack */
--heap_size=256
/* Override default entry point.*/
--entry_point resetISR
/* Allow main() to take args*/
--args 0x8
/* Suppress warnings and errors:*/
/* - 10063: Warning about entry point not being _c_int00*/
/* - 16011, 16012: 8-byte alignment errors. Observed when linking in object */
/*files compiled using Keil (ARM compiler)*/
--diag_suppress=10063,16011,16012
/* The starting address of the application. Normally the interrupt vectors */
/* must be located at the beginning of the application.*/
#define FLASH_BASE0x0
#define FLASH_SIZE0x20000
#define RAM_BASE0x20000000
#define RAM_SIZE0x5000
/* System memory map */
MEMORY
{/* Application stored in and executes from internal flash */FLASH (RX) : origin = FLASH_BASE, length = FLASH_SIZE/* Application uses internal RAM for data */SRAM (RWX) : origin = RAM_BASE, length = RAM_SIZE
}
/* Section allocation in memory */
SECTIONS
{.intvecs:> FLASH_BASE.text:> FLASH.TI.ramfunc: {} load=FLASH, run=SRAM, table(BINIT).const:> FLASH.constdata:> FLASH.rodata:> FLASH.cinit:> FLASH.pinit:> FLASH.init_array:> FLASH.emb_text:> FLASH.ccfg:> FLASH (HIGH).vtable_ram:> SRAM.data:> SRAM.bss:> SRAM.sysmem:> SRAM.nonretenvar:> SRAM.stack:> SRAM (HIGH)
}
我尝试malloc一个256大小的buffer失败,查看代码发现heap大小只有256字节,我目前需求heap大小为1024字节左右,如何修改heap大小?
Kevin Qiu1:
user6336125 说:我目前需求heap大小为1024字节左右,如何修改heap大小?
你可以修改cmd文件中的HEAPSIZE大小
,
user6336125:
直接修改吗?最大有没有限制?其他应该也要占用一部分
,
Kevin Qiu1:
heap实际上消耗的是RAM,可以通过CCS view查看memory使用情况,如果所剩的RAM比较多,增加1K heap没有什么问题
TI中文支持网



