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.

Regarding searching for text in CCS v6

Hello, 

I am a new user of CCS v6.1 and I am having trouble searching for text in CCS v6.1.0.  CCS v3.3 was very convenient as I was able to easily look for variables, addresses, text in .c or .h files in a project. Can you let me know how to run similar searches in CCS v6.1.0? 

I am working on a project file that was imported from V3.3 to v6, I tried using 'File Search' as well as "C/C++Search", the project location has been included in 'Include Options'  the search function works well for text in .c files, but it  do not work well for searching through header files or searching for hex numbers/addresses. 

- C/C++ Search for hex number(e.g. 0x10003B) in any file does not work. For example, 0 matches for 0x10003B in .c or .h files. 

- C/C++ Search  for variable name used in .h as well as .c file: returns results correctly in both .c file as well as .h files. 

- File Search for hex number(e.g. 0x10003B) in any file works partially. It returns correct search results for 0x10003B in .c files only. Does not return search results for hex numbers in .h file. 

- File Search for variable name used in .h as well as .c file: returns results of only .c files. 

Is there a setting I need to change? Thanks,

Gysler

  • Hello Gysler,

    Gysler Castelino said:
    Can you let me know how to run similar searches in CCS v6.1.0? 

    This short video show how to run similar searches in CCSv6:

    Gysler Castelino said:
    but it  do not work well for searching through header files

    Only the C/C++ search will pick up header files outside the project folder

    Gysler Castelino said:
    - C/C++ Search for hex number(e.g. 0x10003B) in any file does not work. For example, 0 matches for 0x10003B in .c or .h files. 

    C/C++ Search is limited to specific element types. See:

    Gysler Castelino said:
    - File Search for hex number(e.g. 0x10003B) in any file works partially. It returns correct search results for 0x10003B in .c files only. Does not return search results for hex numbers in .h file. 

    As mentioned in the video posted above, the File Search will only return results in *.h files if the file is physically inside the project folder

    Gysler Castelino said:
    - File Search for variable name used in .h as well as .c file: returns results of only .c files. 

    Same as above.

    Gysler Castelino said:
    Is there a setting I need to change? Thanks,

    Unfortunately this is a known Eclipse CDT limitation. There have been bugs filed against the Eclipse community for this but the current status is that it remains unresolved. Hopefully they fix this in a future release.

    Thanks

    ki