Jump to content

Debugging Options with the Launchpad

Recommended Posts

Yes, it's called an oscilloscope and a toggling bit. It's very cheap on code space.


When you enter into a part of the code that you want to debug, make a pin toggle up and down once. Make that bit toggle at the end of the code that you are examining. Watch the oscilloscope to see the bit toggling events.


Another option, if you are using CCS (I don't use mspgcc so I can't comment on it), is this: you can use the built in debugger and use breakpoints or single step your way through the code and watch what happens by examining the value of variables or memory.


I use both techniques. The bit flipping method when I'm debugging something in real time and it depends on an external sensor. I use the debugger method when I am debugging a computational algorithm.



Make sense?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...