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.

startup_msp432p401r_ccs.c include

Hi,there

I have a simple question about the file: startup_msp432p401r_ccs.c.

When I looking for the interrupt vector table,I've found it in the file startup_msp432p401r_ccs.c.But I can't find any file include this file.I can't find any include option in project property settings.My question is,how did it play a part in the compiling.

I asked Ryan in microcontroller forum,he said,when MSP432 CCS projects are created they pre-include necessary files such as startup_msp432p401r_ccs.c and system_msp442p401r.c inside of the project properties and therefore do not need the #include declaration inside of the C program. 

So,how can I know CCS has already included some file,because I can't find it in pre-include of project properties.

Thanks!

  • Hi,

    All .c, .cpp, etc. source files that are physically included in the project are automatically pulled into the build. That is why the startup file you mentioned gets pulled into the build when a new project is created and automatically adds this file to it.

    Reference: last sentence of section 2.4 of the page below:
    processors.wiki.ti.com/.../Projects_and_Build_Handbook_for_CCS

    Hope this helps,
    Rafael
  • Thanks,Rafael!
    I think you have solved my problem,the CCS build all files that are physically included in the project.
    Reference: first sentence of section 2.9 of the same page("By default all files and folders within the CCS project folder are assumed to be part of the project build. To exclude file(s) or folders from the CCS project build, right-click on the file or folder in the Project Explorer view and go to Resource Configurations->Exclude from Build. In the pop-up dialog select the build configurations for which you want to exclude that file.")
    Thank you again!