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: Code Composer Studio
After ccs9.3 modify the header file, the compiler will not compile the associated file
I am going to need more information than that to be able to help you.
Regards,
John
Migo,
Thank you for the information. So CCS is not detecting that the header file has changed and is not building the associated source files.
Could you try a few things:
If you insert an error into the header file and then right click on the project select clean and then select build does it fail with the build error?
If you go to the View menu, select "Other" at the bottom. Type Include in the box at the top. Then select "Include browser"
This will open the Include browser tool. You can then drag the source file from the Project Explorer that includes the header file into the view.
Here I have dragged device.c into the view. It then shows me the files that it includes:
If I right click on device.h and select open it will open the header file if it can find it. In your case is it able to open the file that has the macro definition.
Any chance that you could attach the project that is having the issue? We could setup a private conversation in E2E if you don't want to attach in a public forum.
Regards,
John
Here
Migo,
I sent a friend request via E2E. Once that is accepted we can have a private conversation and exchange the project.
Regards,
John
Migo,
You have not accepted the friend request. Were you able to get past this issue?
Regards,
John
Migo,
There would be a separate email with the invitation. Alternatively you can go to the top right of E2E and there would be a notification there as well that you can click on.
I am not able to reproduce this issue. I can also confirm that for me CCS detects changes to header files that are occuring outside of CCS:
There were a number of things that I asked you to try to help to figure out what is going on. I see that you tried the clean and rebuild but I did not see if you tried some of the others.
If you insert an error into the header file and then right click on the project select clean and then select build does it fail with the build error?
I am asking you to do this as I want to confirm that CCS is actually using the file in the build. Inserting the error in the file should cause the build to fail.
I also asked about using the include browser. I was asking you to try that to confirm that CCS is able to open the correct file.
Regards,
John
I am not sure if you tried using the include browser like I suggested. I wanted you to do that so that I could confirm that CCS is opening the file that you think it should. I am suspecting that there are more than one copy of the header file and that the one you are editing a
John
If you insert an error into the header file and then right click on the project select clean and then select build does it fail with the build error?
-->Yes.
I am asking you to do this as I want to confirm that CCS is actually using the file in the build. Inserting the error in the file should cause the build to fail.
-->Inserting the error in the header file will not cause the build to fail, if I build the project directly. And it will cause the bulild to fail if I clearn and build the prodect.
I also asked about using the include browser. I was asking you to try that to confirm that CCS is able to open the correct file.
-->Yes
You can try import a CCS3.3 project into CCS9.3 , if you can't reproduce the issue. Because the project imported from CCS3.3. but CCS7.4 can work perfectly.
Regards,
Migo
Migo,
If you click on my name it should give you the option to start a private converation with me. In that you can attach a project where you are seeing this issue.
Regards,
John