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

CCS5.5使用malloc(),memcpy()函数后,再使用DELAY_US()函数,程序会进入void ILLEGAL_ISR(void)

CMD文件

MEMORY
{
PAGE 0 :
/* BEGIN is used for the "boot to SARAM" bootloader mode */

BEGIN : origin = 0x000000, length = 0x000002
RAMM0 : origin = 0x000050, length = 0x0003B0
// RAML0L1 : origin = 0x008000, length = 0x000D00
RAML0L1 : origin = 0x008000, length = 0x002000
RESET : origin = 0x3FFFC0, length = 0x000002
IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */
IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */
IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */

BOOTROM : origin = 0x3FF27C, length = 0x000D44

PAGE 1 :

BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */
// RAMM1 : origin = 0x000480, length = 0x000380 /* on-chip RAM block M1 */
// RAML2 : origin = 0x008D00, length = 0x000300
// RAML3 : origin = 0x009000, length = 0x001000
RAMM1 : origin = 0x000480, length = 0x000380
RAML2 : origin = 0x008D00, length = 0x002000
RAML3 : origin = 0x00AD00, length = 0x000300

}

SECTIONS
{
/* Setup for "boot to SARAM" mode:
The codestart section (found in DSP28_CodeStartBranch.asm)
re-directs execution to the start of user code. */
codestart : > BEGIN, PAGE = 0
ramfuncs : > RAMM0 PAGE = 0
.text : > RAML0L1, PAGE = 0
.cinit : > RAMM0, PAGE = 0
.pinit : > RAMM0, PAGE = 0
.switch : > RAMM0, PAGE = 0
.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */

.stack : > RAMM1, PAGE = 1
.ebss : > RAML2, PAGE = 1
.econst : > RAML2, PAGE = 1
.esysmem : > RAML2, PAGE = 1

IQmath : > RAML0L1, PAGE = 0
IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD

/* Uncomment the section below if calling the IQNexp() or IQexp()
functions from the IQMath.lib library in order to utilize the
relevant IQ Math table in Boot ROM (This saves space and Boot ROM
is 1 wait-state). If this section is not uncommented, IQmathTables2
will be loaded into other memory (SARAM, Flash, etc.) and will take
up space, but 0 wait-state is possible.
*/
/*
IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD
{

IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)

}
*/

/*
IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD
{

IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)

}
*/

}

Green Deng:你好,正常使用DELAY_US()语句只需要用到memcpy()函数就可以了,不需要malloc()

赞(0)
未经允许不得转载:TI中文支持网 » CCS5.5使用malloc(),memcpy()函数后,再使用DELAY_US()函数,程序会进入void ILLEGAL_ISR(void)
分享到: 更多 (0)