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.

Identifier not found GlobalIQ

Other Parts Discussed in Thread: SPRC087

Hi,

I have started a new project in Code Composer and am unable to view IQ variables in the watch window. I am using Code Composer 3.3.

I keep getting the error message Identifier not found - Global IQ.

I change my workspace back to my old project and am able to see my variables - Any ideas what is going on?>

 

Cheers,

Seán

  • Is it only certain IQ variables in your code that you are unable to watch or all of them?

    If only certain ones, is it possible that the variable has been optimized away? You could check your build options and make sure that full symbolic debugging is turned on and optimization is turned off and then give it a try. Another way to check if the variable is really getting optimized is to add the "volatile" qualifier to that variable and see if it then shows up correctly in the watch window.

  • Hi Aarti,

    Symbolic debugging is turned on and optimization is turned off. I am unable to see any IQ variables. It is so strange...are there any other IDE settings that I need to set to view the IQ variable?

    Thanks,

    Seán

  • There is no special setting required in the IDE. This is strange because I don't have any issues viewing IQ variables in the watch window. And it seems that you are also able to view them for a different project.

    Have you tried the example included in the IQMath library download? Is that the project where it does work? 
    What about other variables in your code? Is the problem only with IQ variables? Which version of CCS 3.3 are you using?

    If you can attach a simple example that demonstrates the issue I can take a look at it.

     

  • Thanks Aarti.

    No I have not tried the example - but I shall. No, the project where it works is one that I am developing myself.

    I just followed the instructions in the IQMath user guide and went from there.

    All other variables work, except the IQMath ones. 

    I am using 3.3.83.19.

    I am away from my workstation at the moment - but from memory it is something along the lines of ;

    #include "IQmathLib.h"

    void main(void)

    {    

    // Initialise CPU etc..

    //set variables

    _iq x = 0;

     

    int y = 18;

    // Set value for X.

    x = _IQ(12.234);

    while(1)

    {

    // main loop

    }

     

     

     

  • Just wanted to update this thread that I tested the IQMath example from IQMath Library package (SPRC087) on a Windows 7 machine and did not have any issues viewing the IQmath variables in watch window. I did have UAC disabled when installing CCS 3.3.