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.

CCS v5.1 MSP430 debugging w/ Interrupts

Other Parts Discussed in Thread: ADS1298

I have an MSP430 MAVRK development kit  with a few plug-in modules and am trying to integrate multiple TI demo apps for these modules into a common single application as a prelude for developing an application for our target board design. I have 3 modules, including an ADS1298 module, plugged in and all working with the MAVRK AppMonitor as individual stand-alone demo apps from the mavrk_embedded repository. However, my debugging efforts are being hampered by some apparent limitations of the debugger in an interrupt loaded environment.

The problem I am having is that the single-step commands in the debugger, including both step-over and step-into functions, cannot be effectively used because the debugger jumps to the port 2 ISR with every attempt to execute the next line of code after a breakpoint has been reached. The interrupts are  running at a high rate since the ADS1298 is continuously streaming data at 500 samples per second, so every time I attempt to single step, including step over, a port 2 interrupt is pending and the first line of the ISR is where program control jumps to and stops. This debugging handicap is further compounded by the apparent absence of a run-to-cursor debugger command that most quality debuggers have.

These limitations associated with debugging in an environment with a high rate of interrupts will profoundly hamper my product development as I continue to build a bigger and more complex  application during the development cycle for my target board. Can you offer any help with facilitating my debugging efforts with CCS5 in this heavily interrupt loaded environment?

  • Hi Andrew,

    what behaviour do you require?  In the generic debugger options you can disable interrupts when single stepping .... would something like that work for you?  Have you looked in Project->Properties->Debug ... Generic Debugger Settings ..

    Please keep us informed.

    Best Regards,
    Lisa

  • Hi Lisa,

    Thank you very much for the quick response and good tip. Considering that option is at the bottom of a long scrollable list of debugger options on the specified page, it might have taken me quite a lot of looking to stumble across it. That option will probably work for me much of the time, including my present situation, so thanks again for the advice.

    With that said, I can anticipate many instances where I would still want interrupts to run while taking short hops through small blocks of code. What seems to be really missing is a Run-to-cursor feature where I can run real-time (with interrupts active) from the present execution point to the line of code under the cursor. Is there any feature (current or planned) that supports that mode of debugging in CCS for the MSP430?

    Thanks again,
    Andy

  • Hi Andrew,

    I beleive both run to line and run to cursor are supported.   Double check some of the options.  If you are in debug mode-perspective Run to line is under the Run menu.

    Best Regards,
    Lisa