This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

uVision2: Can't set watch on 'state'

My 'C' program has a variable called 'state'.
It compiles & runs OK, but uVision won't let me set a watch on it:

WS 1,state
-----^
*** error 10: Syntax error
I presume that 'state' must have some special meaning to uVision - but what is it?
I can't find it in the uVision User Guide 06.2000 (I can find 'states' but not 'state').

Yes, using the single back-quote ' does work:
WS 1,'state
- which supports my theory that it's some sort of reserved name.

0