We have several static libraries that we've developed for our C2000 applications that were created and compile without issue in an older version of CCS (v8.0). When we try to compile these projects in v10.x and even the latest v11.2.0, we keep getting the above mentioned error. I thought this might have something to do with porting project settings from the v8.0 project to the newer versions of CCS, so I instead tried creating the project from scratch in the latest version of CCS. When I do this, the project will compile successfully the first time, but all subsequent attempts will cause the above mentioned error. I've tried this on two different machines (Windows 7 64-bit and Windows 10 Pro) with the same result. I've also tried several different libraries with difference source files and they all cause the same behavior. Here's a quick summary of the steps I go through to create the new project:
1) Create a new workspace folder and open in CCS v11.2.0
2) Select Project -> New CCS Project
3) Set target to "Generic C28xx Device", output type to "Static Library", and output format to "legacy COFF"
4) The only project properties that have been changed from the default settings are:
a) C2000 Compiler -> Processor Options -> Specify floating point support = fpu32
b) Added two additional paths under C2000 Compiler -> Include Options
c) Specified a name/location for the generated .lib file under C2000 Archiver -> Basic Options
5) Copied two new folders with .h and .c source code into the new project folder
The first time I run "Build Project" on the new project, it will compile successfully without error. If I then try "Build Project" again, I get the "Internal Error" message box with the message "A stack overflow error has occurred. You are recommended to exit the workbench. Subsequent errors may happen and may terminate the workbench without warning. See the .log file for more details." If I make any code changes and try "Build Project" again, I keep getting this message. However, if I run "Rebuild Project" or "Clean Project" and then "Build Project", it will compile successfully without error.
I've looked through the generated .log file but can't make sense of it myself. Here's a snippet from file:
!MESSAGE An internal error occurred during: "Building project(s)".
!STACK 0
java.lang.StackOverflowError
at java.base/java.util.HashMap.putVal(Unknown Source)
at java.base/java.util.HashMap.put(Unknown Source)
at java.base/java.util.HashSet.add(Unknown Source)
at com.ti.ccstudio.project.core.internal.build.temp.BuildDescriptionManager.getSteps(BuildDescriptionManager.java:172)
at com.ti.ccstudio.project.core.internal.build.temp.BuildDescriptionManager.doAccept(BuildDescriptionManager.java:127)
at com.ti.ccstudio.project.core.internal.build.temp.BuildDescriptionManager.doAccept(BuildDescriptionManager.java:132)
at com.ti.ccstudio.project.core.internal.build.temp.BuildDescriptionManager.doAccept(BuildDescriptionManager.java:132)
at com.ti.ccstudio.project.core.internal.build.temp.BuildDescriptionManager.doAccept(BuildDescriptionManager.java:132)
I can provide the complete .log file if it helps.
The two main questions I have are: 1) Any idea why this is happening and how to make it not happen? 2) If I use "Rebuild Project", should I be concerned at all about the integrity of the generated .lib file?
Thanks