This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am upgrading myself from a minimalist user of V3.3 to (hopefully) a more effective user of V5.1. I just got my Launchpad kit today and I'm going through the CCS V5 Overview Workshop. All is going nicely until I get to the exercise to set a Watchpoint. Neither the Workshop nor the CCS V5 Help seems to match what I get from the Watchpoint properties page. Perhaps someone here can clear things up.
The project in the workshop is 'blinkLED'. I get it built and running, LED blinking nicely, then click "Suspend". I open the Watchpoint menu, enter 'i' into the location, and then select 'Breakpoint Properties' from the Watchpoint I just created. This is where it gets a little confusing. The tutorial shows a graphic showing me how to set the 'Value' field, but I get no 'Value' field. So I open CCS Help and find instructions on how to set Watchpoints. That says to select the 'global variable' (i is not global, so I rearranged the project to make it so, but that didn't have a useful effect), and click 'Run->Toggle Watchpoint', which doesn't exist in the menus.
So this appears to be a normal case of documentation not keeping up with code. How, then, do I set a watchpoint that will trigger when that variable reaches a specified value?
Daryl,
There is a wiki article that specifically talks about advanced debug features such as watchpoints in MSP430 devices. http://processors.wiki.ti.com/index.php/MSP430_Advanced_Debugging_using_CCSv5
It includes a video clip which should be helpful. Note that the debug features available depends on the device being used, and the application note referenced in the wiki article explains all of that.
Hope this helps.
Hi Daryl,
please check the following.
1 - Did you add a watchpoint? This is slightly different to adding a breakpoint.
2 - Right click on the watchpoint and go to breakpoint properties. Please expand Type and fill it in as follows and as per the tutorial. You will then see value. Make sure to select "Memory Data Bus" and not memory address bus.
Please see the screenshot attached and keep me informed.
Best Regards,
Lisa
Thanks for the feedback. I added a Watchpoint. Here is a view of the source code and the Watchpoint: (My apologies for the low quality. I could use some help with knowing how to get better screen shots!)
And here's the dialog box after right-clicking on the Watchpoint and selecting "Breakpoint Properties":
As you can see, instead of getting the selections you show, I get something completely different, and the Location fields are not editable.
I appreciate your interest. I watched the recommended video, but the user experience captured there was even more different from mine.
Hi Daryl,
you need to change "Memory Address Bus" to "Memory Data Bus" - this is a drop down option you can very easily change. Please see my screenshot and description in my post.
Best Regards,
LIsa
Of course! I looked at that a dozen times and glazed right over the Address/Data difference. Thanks. Since this is a "Release Candidate", I wonder if it's too late to make the drop-down indicator visible even before the user clicks on that field, sort of as a hint that there are options there? Not that I'll ever forget this!
Thanks for your help. It's working very nicely now.
Hi Daryl,
well I can make the suggestion but more I can not do or promise so we shall see. I agree that it would improve things as it may not be obvious some items are drop-down or can be changed.
Best Regards,
Lisa
I am having a similar issue configuring watchpoints in CCS V5.5.
I tried setting up the watchpoint by setting "Memory Data Bus", but this appears to stop execution whenever a the data bus has a certain value, no matter what the memory address is.
I am trying to break whenever the value at a certain memory address is altered. When I watch the tutorial video, I notice that the "add breakpoint" button in the Breakpoint View has 3 small blue dots, whereas my setup only has a single blue dot. Is this determined by target device, or by code composer version, or by some other configuration parameter?