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?
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.
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 ?
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
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?