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

TMS320F28335 IQmath 编译问题

请教专家:

我用样板工程 28335_IQsampleC 测试 _IQNtoa 转换函数没有出问题.

但在我的工程中加入 

_iq14  fx;

_iq3  fl;

float  j = 35.65456;

char buffer[10];

……….

fx = _IQ14(j);
fl = _IQ3int(fx);
 _IQ14toa(buffer, "%6.6f", fx);

………

编译时出提示:"../CMD/My_F2835.cmd", line 177: warning: no matching section

并报错:

Severity and Description Path Resource Location Creation Time Id
unresolved symbol __IQ14toa, first referenced in ./INCLUDE/ExInt.obj My_Dsp_Projects line 0 1370539831250 4466

去除  _IQ14toa(buffer, "%6.6f", fx); 这行则只出上面提示.可通过编译.

我试着 多次修改CMD文件.都无法去除提示.我感觉去除提示则转换函数就可通过.请专家指点是什么问题.

CMD文件如下:

MEMORY
{
PAGE 0:

ZONE0 : origin = 0x004000,    length = 0x001000
RAML0 : origin = 0x008000,    length = 0x001000 
RAML1 : origin = 0x009000,    length = 0x001000
RAML2 : origin = 0x00A000,    length = 0x001000
/* RAML3 : origin = 0x00B000, length = 0x001000 */
ZONE6 : origin = 0x0100000,   length = 0x100000
ZONE7A : origin = 0x0200000, length = 0x00FC00
FLASHH : origin = 0x300000,   length = 0x008000
FLASHG : origin = 0x308000,   length = 0x008000
FLASHF : origin = 0x310000,   length = 0x008000
FLASHE : origin = 0x318000,   length = 0x008000
FLASHD : origin = 0x320000,   length = 0x008000
FLASHC : origin = 0x328000,   length = 0x008000 
FLASHA : origin = 0x338000,   length = 0x007F80 
CSM_RSVD : origin = 0x33FF80,   length = 0x000076
BEGIN :           origin = 0x33FFF6,   length = 0x000002
CSM_PWL :   origin = 0x33FFF8,   length = 0x000008 
OTP :               origin = 0x380400,   length = 0x000400
ADC_CAL :    origin = 0x380080,   length = 0x000009 
IQTABLES :     origin = 0x3FE000,   length = 0x000b50
IQTABLES2 :   origin = 0x3FEB50,   length = 0x00008c
FPUTABLES : origin = 0x3FEBDC, length = 0x0006A0 
ROM :               origin = 0x3FF27C,   length = 0x000D44
RESET :           origin = 0x3FFFC0,  length = 0x000002 
VECTORS :     origin = 0x3FFFC2,  length = 0x00003E 

PAGE 1 :

BOOT_RSVD : origin = 0x000000, length = 0x000050 
RAMM0 : origin = 0x000050, length = 0x0003B0
RAMM1 : origin = 0x000400, length = 0x000400
RAML3 : origin = 0x00B000, length = 0x001000
RAML4 : origin = 0x00C000, length = 0x001000 
RAML5 : origin = 0x00D000, length = 0x001000
RAML6 : origin = 0x00E000, length = 0x001000 
RAML7 : origin = 0x00F000, length = 0x001000
ZONE7B : origin = 0x20FC00, length = 0x000400 
FLASHB : origin = 0x330000, length = 0x008000
}

SECTIONS
{
.cinit : > FLASHA PAGE = 0
.pinit : > FLASHA, PAGE = 0
.text : > FLASHA PAGE = 0
codestart : > BEGIN PAGE = 0
ramfuncs : LOAD = FLASHD, RUN = RAML0, LOAD_START(_RamfuncsLoadStart),
LOAD_END(_RamfuncsLoadEnd),
RUN_START(_RamfuncsRunStart),
PAGE = 0

csmpasswds : > CSM_PWL PAGE = 0
csm_rsvd : > CSM_RSVD PAGE = 0
.stack : > RAMM1 PAGE = 1
.ebss : > RAML6 PAGE = 1
.esysmem : > RAMM1 PAGE = 1

.econst : > FLASHA PAGE = 0
.switch : > FLASHA PAGE = 0

Qmath : > FLASHC, PAGE = 0

IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD
IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD
{
IQmath_fpu32.lib<IQNexpTable.obj> (IQmathTablesRam)
}
IQmathTablesRam : > RAML4, PAGE = 1
FPUmathTables : > FPUTABLES, PAGE = 0, TYPE = NOLOAD
FFTReal_Output : > RAML3, PAGE = 1
FFTReal_CosSin : > RAML5, PAGE = 1
FFTReal_Magnitude : > RAML6, PAGE = 1
FFTReal_Input : > RAML7, PAGE = 1 ALIGN(1024)

ZONE7DATA : > ZONE7B, PAGE = 1

.reset : > RESET, PAGE = 0, TYPE = DSECT
vectors : > VECTORS PAGE = 0, TYPE = DSECT
.adc_cal : load = ADC_CAL, PAGE = 0, TYPE = NOLOAD

}

gaoyang9992006:

楼主能否透露一下,这个问题最后怎么解决的,如今又有人遇到了类似的问题,不知道怎么办。

赞(0)
未经允许不得转载:TI中文支持网 » TMS320F28335 IQmath 编译问题
分享到: 更多 (0)