Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: strange problem with conditional compilation

$
0
0

I have a symbol (SW_TIMER) that is defined in the Project Config File.

This symbol is used in a few files inside the projecct.

In CCS V5, some conditional code based on this symbol is grayed-out ( as if the symbol was not defined ) and yet the debugger runs this code.

In other files, it is the other way around. In some instance, in debug mode, if I over a constant that was based on the SW_TIMER symbol. It shows the value as if the symbol was not defined but when it executes it uses the correct value (the defined value) as opposed to the shown overing value.

In general, I have no clue how to debug macros. I avoid them whenever I can. But I am using the simpliciTI stack for this project so there is no way around.

HELP PLEASE


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>