EngIP 31 Posted July 26, 2011 Share Posted July 26, 2011 Is it possible to monitor a value whilst the MCU is running using CCS? E.g. reading the value of an ADC Thanks in advance Guy. Quote Link to post Share on other sites
gwdeveloper 275 Posted July 26, 2011 Share Posted July 26, 2011 Sure. Just pause the debugger, then highlight the variable you want to watch; right click and "Add Watch Expression". [attachment=0]Capture.JPG[/attachment] EngIP and bluehash 2 Quote Link to post Share on other sites
EngIP 31 Posted July 27, 2011 Author Share Posted July 27, 2011 Thanks! I know it's simple stuff, but to the uninitiated even the basics are a mystery! I don't suppose you can alter variables through the debugger can you? nuetron 1 Quote Link to post Share on other sites
nuetron 64 Posted July 27, 2011 Share Posted July 27, 2011 I don't suppose you can alter variables through the debugger can you? Thank you for giving me some ideas! I was having some problems with some variables as well. Anyway, to answer your question: You can in IAR Kickstart, in the watch window, I think you would be able to do so in other debuggers. Quote Link to post Share on other sites
oPossum 1,083 Posted July 27, 2011 Share Posted July 27, 2011 I don't suppose you can alter variables through the debugger can you? Yes, variables, registers, memory. Anything writable. To see variables in the current function, just click on the local tab. No need to watch them. Double click in the left margin (grey area) to set or clear a breakpoint. EngIP 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.