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.

TMS320F2810: Question about IQmath

Genius 3095 points
Part Number: TMS320F2810
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

Dear team,

Im running a Psim simulation of a voltage Source invertger with underlying original C-code developed in Code Composer studio.  My target is the TMS320F2810.  As it is a fixed point dsp I would like to convert my code with IQmath. Unfortunatly Psim cannot read the IQmath.lib with the definitions of the functions. I talked to one of my colleagues and he recommended me to request for a C language file of the lib.
When rewriting the code in IQ math syntax and binding in library and header file I get the following error message

These extern functions are declared in IQmathLib.h

and defined (I guess) in IQmath.lib, the libary file. When i open the *lib file I get this

My question is how I can bind in the *.lib file properly that the definitions can be read from Psim. The IQ math header filer seems to binded in properly.

Is there a IQmath.lib file in C-language available to bind this in as a header?

Best Regards

  • Hi F.F,

    Let me look into this issue and get back to you within a day.

    Thanks,
    Sira
  • Thank you for your attention and waiting for your reply.
  • Dear Sira:

    Wish your reply.

    Best regards

  • Hello F.F,

    To better help you, I'd like to understand the context of what you're trying to do:

    1. Are you trying to convert your code from fixed point to floating point?
    2. Which version of ControlSUITE or C2000Ware are you using?
    3. To better understand why you are asking for a C language implementation of the IQMath lib, looking at the picture you posted, I presume you are trying to use the IQMath library in a non Code Composer Studio environment? Therefore, the linker in PSIM is not able to resolve some of the function calls inside the IQMath.lib because they point to TI C28x Assembly implementations. Is my understanding correct?
    To answer your question, I don't believe we have a C language implementation of this library file. However, I will double check and get back to you. In the meantime, please reply to my questions.

    Thanks,
    Sira
  • Dear Sira:

    1. Are you trying to convert your code from fixed point to floating point?

    à No, I try to convert code from floating point to fixed point using IQmath

    2. Which version of ControlSUITE or C2000Ware are you using?

    à ControlSUITE v3.4.9


    3. To better understand why you are asking for a C language implementation of the IQMath lib, looking at the picture you posted, I presume you are trying to use the IQMath library in a non Code Composer Studio environment? Therefore, the linker in PSIM is not able to resolve some of the function calls inside the IQMath.lib because they point to TI C28x Assembly implementations. Is my understanding correct?

    à I develop the code in code composer. But for simulative tests I bind in the original code with an umbrella code in PSIM. I assume the PSIM environment cannot resolve the IQmath.lib. Hence your understanding is correct.

    My question for the c-language file follows an answer from the ti forum where one of your colleagues mentioned the possibility to request the Source code for IQmath. Here is the link:

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/21756

  • Hi F.F,

    I am in the process of asking a colleague whether we have a C language version of the IQMath library. I will get back to you once I hear from him. It's the holiday season, so there can be delays in responses, so please bear with us.
    If there is indeed a C language version of the library, then we will have to address the legal aspects of how to get it to you? (e.g. signing an NDA, etc.)

    Thanks,
    Sira
  • Hi F.F,

    I just found out that there is no C-language version of the IQMath library. Sorry for the inconvenience.

    I want to let you know that I have noted this request and will see if it can get addressed in the near future.

    I would appreciate it if you could mark the issue as Resolved.

    Thanks,
    Sira
  • Dear Sira:

    Anyway, think you for your attention and help.

    Best regards