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.

  • TI Thinks Resolved

How to connect to target without stopping or resetting the CPU?

Guru 15690 points

Replies: 1

Views: 380

I am trying to debug what appears to be a boot problem with my custom MSP430F5515 board. However, each time I connect to the target the CPU is stopped and reset by CCS, even if I have disabled those options in Project->Properties->Debug->Program/Memory Load->Connection Options->Halt the target on connect, and Reset the target on connect. This appears to be a bug that was fixed on the Stellaris platform (SDSCM00042646). Should the bug fix also work on the MSP430 devices? Can someone please verify this?

Thx,

MikeH

 

  • Hi Mike,

    I just tried this in CCSv5. If the only thing I did was deselecting Halt the target on connect and Reset the target on connect as you mentioned, then I saw that the program still loaded so this means that it doesn't matter, you'll lose your place. The problem is because the options for loading the program and resetting the target when the program loads are still selected.

    Here's what I did to successfully connect to a running target in CCSv5.5.0.00077:

    Under Project > Properties > Debug:

    • Program/Memory Load Options
      • un-checked Halt the target on a connect and Reset the target on a connect
      • un-checked Reset the target on a program load or restart
    • Auto Run and Launch Options
      • under Auto Run Options un-checked On a program load or restart

    Click Ok, and then go to the dropdown arrow to the right of the debug bug icon and select "Debug Configurations".

    • Make sure your project is selected in the left pane
    • click the Program tab and under Loading options select "Load symbols only"
    • Now click the Debug button at the bottom right of the Debug Configurations window.

    Now the debug view should come up, and the device should be connected but still running (if it was running already). You can click the pause button to see where in the program it currently is. If you want to confirm this process before using it to debug your problem project, you could try it with some working blinky code first to prove to yourself that it won't reset the part but will keep it running until you click halt.

    Regards,

    Katie

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.