When I'm trying to add some local variable to uVision watch window it shows the message '<not in scope>' under the 'Value' column. This happens for programs without RTOS. Can someone tell me how can I fix this. When I run in RL-RTX the watch window updates correct values for all variable.
Well, (non-static) local variables are out of scope for most of a program's execution time. Which means they just don't exist while execution is not currently inside the function or block they're local to. So how did you conclude that uVision's message was wrong?