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 in standalone applications using F28335



Hi all. I have a problem using the iqmath library.

When I load the progam and run it into debug mode, the program runs correctly. The problem is when I reset my dsp whithout debugging mode, all aparently runs correctly, it allows me use operations with float variables but the IQmath library doesn´t work. Plese help me.

I'm using ccs v.4 and F28335. I load my program in flash correctly using:

 

memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, &RamfuncsLoadEnd - &RamfuncsLoadStart);

InitFlash();

 

and corresponding external variables

 

 

extern unsigned int RamfuncsLoadStart;

extern unsigned int RamfuncsLoadEnd;

extern unsigned int RamfuncsRunStart;

 

 

In my .cmd linker file:

......

 

ramfuncs            : LOAD = FLASHD, 

                         RUN = RAML0, 

                         LOAD_START(_RamfuncsLoadStart),

                         LOAD_END(_RamfuncsLoadEnd),

                         RUN_START(_RamfuncsRunStart),

                         PAGE = 0

   .cinit              : > FLASHA      PAGE = 0

   .pinit              : > FLASHA,     PAGE = 0

   .text               : > FLASHA      PAGE = 0

   codestart           : > BEGIN       PAGE = 0

....

 

 IQmath              : > FLASHC      PAGE = 0                  /* Math Code                  Ref:F28335.cmd */

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

 

Thank you and sorry for my poor english.

 

 

  • Hi Carlos!

    I have the same problem with F2809 and CCS v 3.3. The program works fine under CCS but it hangs after disconnecting and resetting.

    I have changed the _IQsin function with the floating point sin function from <math> library but the result is the same.

    Have you found a solution?