Tool/software: Code Composer Studio
Code Composer Studio 8.0.0.00016 appears to incorrectly gray out #ifdef blocks. At first I assumed this was due to a conflict between project settings and build settings, since I was using an ad-hoc CCS project that is used to view code but not build it, because I am running a makefile project based on Processor SDK Vision 3.0.3. However, the problem persists when I close the project and just look at code loaded through debugger symbols. It is confusing and inconvenient to be given the impression that certain code will or will not execute, only to find out that is incorrect when stepping through the code.
The following screen shot gives an example:
Note that code under #ifdef IPU_PRIMARY_CORE_IPU1 is grayed out, however, this code is running on primary core IPU1. Furthermore, line 197 highlighted in green indicates that line 197 is the active line about to execute, despite the compiler's indication that this line should not be reached.
It appears that this is a bug. If so, I hope reporting it here will help speed its resolution. However, if there is a way to resolve or mitigate this issue, I would appreciate it.
One possibility I can imagine is that the code index file may control the highlighting. If so, it may be possible to correct it by including an extra header file with the right definitions. However, #definitions in different modules may not be the same, and getting these outputs from the complex build system has proven difficult.
Thanks for your help.