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.

MSPM0L1306: could not find symbol 'uint16_t' in index

Expert 2350 points
Part Number: MSPM0L1306

Tool/software:

In the M0L CCS development, i want to check the data type of uint16_t.

But right click- open declaration shows that could not find symbol 'uint16_t' in index

Where  can I find the declaration of uint16_t?

  • Ok, thanks. But why cannot directly link to the declaration ?

    Due to even you help provide this _stdint.h, i need to find the definition of __uint8_t

    typedef __uint8_t       uint8_t;
  • I need to check with other colleagues.

  • Ok, thanks. But why cannot directly link to the declaration ?

    Such functionality is dependent on the indexer:

    https://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_project-management.html#indexer

    The indexer uses information in the project to find source/header files to index. It does not account for paths that compiler will automatically look in. One such example is the compiler include folder which has RTS header files like stdlib.h

    It is likely your project does not explicitly have this include path in the project properties. I checked the MSPM0 SDK examples and they do not seem to have this either. Hence the indexer doesn't index in that location.

    If you add "${CG_TOOL_ROOT}/include/c" to the list of include search paths, the indexer will then search in there and can find stdlib.h.

    Thanks

    ki

  • Sorry, I see you are referring to other definitions like __unit8_t. The issue is likely related to my post above. Make sure the indexer is aware of the location where the relevant header files are located.

  • If you add "${CG_TOOL_ROOT}/include/c" to the list of include search paths, the indexer will then search in there and can find stdlib.h.

    Could you please help give one screenshot of how to add to the list of include search paths?

  • Could you please help give one screenshot of how to add to the list of include search paths?

  • I add this include option as you posted, but still cannot find the declaration. How did you do then find the declaration?

  • How did you do then find the declaration?

    See my video below:

  • Ok, thanks for your so detial video. 

    Normally, we just want to right click the data type, then find the declaration like C2000 MCU example.

    Hope TI can improve of this .

  • Normally, we just want to right click the data type

    Once the index know where the header file is, this should work: