TI中文支持网
TI专业的中文技术问题搜集分享网站

esysmen配置的空间

Hi Susan,

我程序内部有mallco分配动态内容,按理说空间是分配在heap中,我看dsp的这个heap空间是跟sysmen挂一起的。对于我现在的工程,应该是跟esysmem挂一起。

我再配置的时候发现空间不够,修改了一下esysmen配置的空间,发现存储空间还是配置不上。

我的CMD配置如下,麻烦你帮我看一下。

MEMORY
{
PAGE 0 :/* BEGIN is used for the "boot to SARAM" bootloader mode*/BEGIN	: origin = 0x000000, length = 0x000002RAMM0	: origin = 0x0000F4, length = 0x00030CRAMLS0	: origin = 0x008000, length = 0x002800
//RAMLS1	: origin = 0x008800, length = 0x000800
//RAMLS2		: origin = 0x009000, length = 0x000800
//RAMLS3		: origin = 0x009800, length = 0x000800
//RAMLS4		: origin = 0x00A000, length = 0x000800RESET	: origin = 0x3FFFC0, length = 0x000002/* Flash sectors: you can use FLASH for program memory when the RAM is filled up*//* BANK 0 */FLASH_BANK0_SEC0  : origin = 0x080000, length = 0x001000	/* 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 = 0x0000F1/* Part of M0, BOOT rom will use this for stack */RAMM1: origin = 0x000400, length = 0x0003F8/* on-chip RAM block M1 */
//RAMM1_RSVD: origin = 0x0007F8, length = 0x000008/* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */RAMLS5: origin = 0x00A800, length = 0x000800RAMLS6: origin = 0x00B000, length = 0x000800RAMLS7: origin = 0x00B800, length = 0x000800RAMGS0: origin = 0x00C000, length = 0x002000RAMGS1: origin = 0x00E000, length = 0x002000RAMGS2: origin = 0x010000, length = 0x002000RAMGS3: origin = 0x012000, length = 0x001FF8
//RAMGS3_RSVD : origin = 0x013FF8, length = 0x000008/* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */
}

/*You can arrange the .text, .cinit, .const, .pinit, .switch and .econst to FLASH when RAM is filled up.*/
SECTIONS
{codestart: > BEGIN,PAGE = 0.TI.ramfunc: > RAMM0,PAGE = 0
//.text: >> RAMLS0 | RAMLS1 | RAMLS2 | RAMLS3 | RAMLS4,PAGE = 0
//.text: >> FLASH_BANK0_SEC0 | FLASH_BANK0_SEC1 | FLASH_BANK0_SEC2 | FLASH_BANK0_SEC3 | FLASH_BANK0_SEC4,PAGE = 0, ALIGN(4).text: >> RAMGS0|RAMGS1|RAMGS2,PAGE = 1.cinit: > RAMM0,PAGE = 0.switch: > RAMM0,PAGE = 0.reset: > RESET,PAGE = 0, TYPE = DSECT /* not used, */.stack: > RAMM1,PAGE = 1

#if defined(__TI_EABI__).bss: > RAMLS5,PAGE = 1.bss:output: > RAMLS5,PAGE = 1.init_array: > RAMM0,PAGE = 0.const: > RAMLS5,PAGE = 1.data: > RAMLS5,PAGE = 1.sysmem: > RAMLS5,PAGE = 1.bss:cio: > RAMLS0,PAGE = 0
#else.pinit: > RAMM0,PAGE = 0
//.ebss: > RAMLS5|RAMLS6|RAMLS7|RAMGS0|RAMGS1|RAMGS2,PAGE = 1
//.ebss: > RAMLS0 | RAMLS1 | RAMLS2 | RAMLS3 | RAMLS4 | RAMLS5 | RAMLS6 | RAMLS7,PAGE = 0.ebss: > RAMLS0,PAGE = 0.econst: > RAMGS3,PAGE = 1.esysmem: > RAMGS3,PAGE = 1.cio: > RAMGS3,PAGE = 1
#endiframgs0: > RAMGS0,PAGE = 1ramgs1: > RAMGS1,PAGE = 1  
}

/*
//===========================================================================
// End of file.
//===========================================================================
*/

Susan Yang:

我会在测试后给您回复。

,

Susan Yang:

我直接使用您的cmd文件,memory视图并没有出现任何红色警告部分

,

xiao kelvin:

需要说一个配置,由于我动态分配的内存比较大,工程配置的heap为0X400,我想要把这个空间调大,可以把这个空间调到多大?

,

xiao kelvin:

我动态配置的空间可能有4k左右,这个heap空间能调到我要的的4k大小吗?我尝试过调到0X2000,空间分配就会报错。

,

Susan Yang:

请参考CCS说明

software-dl.ti.com/…/ccs_troubleshooting.html

赞(0)
未经允许不得转载:TI中文支持网 » esysmen配置的空间
分享到: 更多 (0)