This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IQmath atan2() error on F28069 by CCSV5.2



Hello  Everybody.

I used atan2() functoin

ETheta = _IQ15atan2( _IQ15(0.5), _IQ15(0.866) ) ;

But result is '0' ( It should be '17157')

I don't know why ? 

And I have tried _IQmpy,  it's right.

Thanks a lot.

Environment : 

IQmath V16.0,  I have include IQmathLib.h , 2806x_IQmath_BootROMSymbols_fpu32.lib , IQmath_fpu32.lib

And the compiler is warning like this 

cmd file : F28069.cmd  ( part about IQmath ) 

//###########################################################################
//
// FILE: F28069.cmd
//
// TITLE: Linker Command File For F28069 Device
//
//###########################################################################
// $TI Release: F2806x C/C++ Header Files and Peripheral Examples V135 $
// $Release Date: Sep 8, 2012 $
//###########################################################################

MEMORY
{
PAGE 0 : /* Program Memory */
/* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE1 for data allocation */

IQTABLES : origin = 0x3FDF00, length = 0x000B50 /* IQ Math Tables in Boot ROM */
IQTABLES2 : origin = 0x3FEA50, length = 0x00008C /* IQ Math Tables in Boot ROM */
IQTABLES3 : origin = 0x3FEADC, length = 0x0000AA /* IQ Math Tables in Boot ROM */

}

SECTIONS
{

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

}

Link describe.

 +