Guest
#5126946
Hello guys, i came about a something strange to me while programming and Debugging some c-Code with AVR-Studio 7. I was trying to watch the value of an Expression while Debugging, but i get the message "unknown identifier". The Expression is defined as follows: #define THRESH1 (uint16_t) ((uint32_t)1024*(500 + 1*800)/5000) does anyone has an idea, why i can't watch the value of this constant? By the way, i've tried declaring it localy or global, but i still get the same message. Moreover, i tried with the following Expression: const uint16_t thresh1_3 = (uint16_t) ((uint32_t)1024*(500 + 3*800)/5000); but the watch variable only works when it is a local constant, not global. Does anyone has a hint there too? I also deactivated optimizations too but it doesn't seem to help. Thanks and Cheers Paul