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
Using CCSv7 Version 7.1.0.00016, I have a project with four build configurations:
Debug
Debug__GNU
Release
Release__GNU
The two build configurations ending in __GNU are built with GCC; the other two are built with TI compiler.
Therefore the project contains two different linker scripts and two different C startup files.
When building with GCC I need to exclude from build the two files needed for TI; when building for TI I need to exclude the two files needed for GCC.
Unfortunately this is not saved for the two TI configurations. The GCC configurations remember not to use the TI configurations' linker script and C startup file, but the TI configurations keep trying to include the GCC linker script and C startup file in the built. Telling it to exclude the files works for the current session only. Closing and reopening CCS reverts the TI build configurations to include the GCC files in the build.
I can verify that nothing is changing in the .cproject, .ccsproject, or .project files because those are under version control and SVN shows that the files are unchanged, no matter how many times we tell it to exclude those files from built.
This is not acceptable because our builds depend on the project settings, which MUST be saved and preserved reliably!
We also noticed that sometimes we have to change a setting multiple times in the Project Properties for it to be remembered. Notably adding predefined symbols to the compiler settings sometimes has to be done more than once. If you close the Project Properties and reopen it, symbols that were just added are gone and have to be added again.
Workspace folder path: E:\workspace\CCS_Workspace.
Our projects are located under E:\workspace but are outside the CCS_Workspace folder.
CCS, the compilers, TivaWare, etc., are all installed under C:\ti.
My user account (the only user account on this computer) is an Administrator account.
I have created a test project that reproduces the issue on our end. This was located on our system at drive E:\
The directories and files in this zip file are as follows:
TestWorkspace - main directory (was directly under drive E:)
TestWorkspace\CCS_Workspace - The CCSv7 workspace
TestWorkspace\Projects - Directory to hold CCSv7 projects
TestWorkspace\Projects\TestProject - A test project to reproduce the issue
I created the test project by removing all code except the minimum required to compile, run, and blink a LED at 1 Hz 50% duty cycle. This code runs on a EK-TM4C129EXL LaunchPad.
I tested quite extensively. To reproduce the issue:
1. Open the project and switch to one of the TI build configurations (either Debug or Release).
2. Confirm that the files tm4c129encpdt_startup_gcc.c and tm4c1294ncpdt_gnu.lds, which are for GCC, are not excluded from the build and cause errors.
3. Right-click in Project Explorer and set "Exclude from build" for those files.
4. Confirm that this build configuration now builds successfully (I use Project -> Clean to do a full clean build).
5. Exit and restart CCS
6. Confirm that the files are no longer excluded from build and cause errors.
These steps reproduce the issue.
I just noticed that starting a debug session before step 5 does cause the project to be saved. But doing a clean build without starting a debug session does not.
Project and CCS Workspace: TestWorkspace.zip
I don't know if it is related but have sometimes seen that when adding settings, such as include paths, than after pressing OK on the project properties dialogue that the changes are not saved. This can be seen that when re-opening the same page of the project properties that the most recent change has been lost.Ki-Soo Lee said:EDIT: I might have reproduced it once.... but I can't seem to have it happen again. Perhaps I misunderstood something. But most of the time I saw .cproject get written to immediately.
Have seen this on a number of CCS versions, but haven't previously reported as never managed to get a repeatable test case.
The problem seems to happen most often when copying settings from one Configuration to another, which involves changing between different Configurations in the project properties. E.g. just saw the problem several times in CCS 7.2.0.00013 under Windows 10 when copying include paths from the original Debug configuration to a new Debug_GNU configuration.
Edit: Corrected to saw the problem on Windows 10, not Windows 7.