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.

CCS/TMS320F28335: How would I find where functions are in the CCS libraries. [update_compare1]

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Beginner in using CCS, I am testing out this code that I got from TI application notes, but there is one function that is not defined and all the variables inside the function are also undefined. So my question is, is there an way to find out which library contains the function that I am using.  

  • Aquins,

    I think you are attempting to build an example code and getting an unresolved symbol error for a number of functions. There is no way for CCS to know what library the functions are part of. If the functions are part of a TI library if you post the names of the unresolved symbols here we may be able to identify the library that they are part of.

    Regards,
    John
  • Ok based on your other thread I am assuming the function you are looking for is called update_compare1(). I can going to loop in the C2000 team to assist.
  • Which application note are you referring to? I am unable to glean that information from your first post.

    If you are new to C2000 or CCS, please review the workshops at processors.wiki.ti.com/.../C2000_Archived_Workshops. Many questions can be answered by reviewing the workshop material for your specific device family or its closest equivalent. Excellent introductory videos about CCS are available at www.youtube.com/.../CodeComposerStudio
  • Thank you for the replay, I know some of these should be user defined, but these are the undefined variables.

    "../main.c", line 15: error #20: identifier "EPWM_INFO" is undefined
    "../main.c", line 18: error #20: identifier "flag_outta_0" is undefined
    "../main.c", line 18: error #20: identifier "flag_into_0" is undefined
    "../main.c", line 27: error #20: identifier "flag_outta_0_b" is undefined
    "../main.c", line 27: error #20: identifier "flag_into_0_b" is undefined
    "../main.c", line 45: error #20: identifier "EPWM_CMP_UP" is undefined
    "../main.c", line 49: error #20: identifier "Steps" is undefined
    "../main.c", line 54: error #20: identifier "EPWM_CMP_DOWN" is undefined
    "../main.c", line 55: error #20: identifier "Steps" is undefined
    "../main.c", line 68: error #20: identifier "Steps" is undefined
    "../main.c", line 72: error #20: identifier "Steps" is undefined
    "../main.c", line 77: error #20: identifier "temp" is undefined
    "../main.c", line 102: error #20: identifier "Steps" is undefined
    "../main.c", line 106: error #20: identifier "EPWM_CMP_DOWN" is undefined
    "../main.c", line 107: error #20: identifier "Steps" is undefined
    "../main.c", line 120: error #20: identifier "Steps" is undefined
    "../main.c", line 124: error #20: identifier "Steps" is undefined
    "../main.c", line 127: error #20: identifier "temp1" is undefined
  • Hi,

    I am referring to "Using the ePWM Module for 0% - 100% Duty Cycle Control, Literature Number: SPRAAI1", thank you for the reference materials.
  • Aquins,
    Where did you get this code?

    I would recommend that you start from a C2000Ware example. They will be correctly linked and have all identifiers defined.

    Maybe the following would be a good starting point.
    C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2833x\examples\epwm_updown_aq

    Regards,
    Cody
  • Hello Aquins,
    to find undefined identifiers or any other literals
    you can use command like this:
    find /mnt/c/ti/C2000Ware/C2000Ware_1_00_06_00/ -iname *.[ch] -print -exec grep -n EPWM_CMP_DOWN {} \;
    on any Linux/UNIX I have ever seen
    and on Windows 10 if you have Windows Services for Linux.