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 Running console without debugging?

Hi,

I am running code on a MSP4302332. My code currently uses a printf statement to print to the CCS debug console in real-time. The problem is that I can't view the console unless I re-input my code using the debug tool.

Is it possible to connect to a running MSP430 chip using JTAG wires, and view the printed statements on a console without having to reload the code in debug?

I need to be able to switch between several boards and view each of their print statements without wiping/resetting the code each time I connect. 

Please help! Thanks!

Scott

  • Scott,

    Scott Brandonisio said:
    Is it possible to connect to a running MSP430 chip using JTAG wires, and view the printed statements on a console without having to reload the code in debug?

    I haven't tried to leave printf() statements on running targets that are disconnected from the CCS debugger, therefore I am not sure if simply loading the Symbols (menu Run --> Load --> Load Symbols) is enough to bring back the printf() statements. I would definitely try that in your case.

    Of particular interest for this scenario, you can check the page below lo load symbols in an automated manner:

    http://processors.wiki.ti.com/index.php/MSP430_-_Connecting_to_a_running_target

    That said, I am not sure if the printf() code will fail catastrophically or silently when the target board is disconnected from the CCS debugger. My impression is they would silently fail and keep the code execution, despite the penalty caused by the added printf() code.

    For additional info on printf(), check:

    http://processors.wiki.ti.com/index.php/Tips_for_using_printf 

    Hope this helps,

    Rafael

  • Thank you for the quick reply. I have tried only loading the Symbols when reconnecting and debugging. While this does not reset the code, you are right in that the printf() still failed silently and I still could no longer print to console.  That was a good suggestion though, and I'll keep playing with it. Please let me know if you have any other thoughts on this issue. Thanks!

    Scott