Tool/software: Code Composer Studio
Hi all,
I'm currently working on a project where we need to run a program on an MSP430 for a random length of time before pausing execution. We've been using both CCS's scripting interface as well as command line DSS scripts to try to automate the process. Single stepping through thousands of instructions becomes prohibitively long. Instead, we have been launching the MSP430 to run using debugSession.target.runAsynch(), delaying a certain amount of time (using JavaScript's setTimeout function), and then issuing the debugSession.target.halt() command.
My problem arises when the halt command is issued. Inside of CCS it pauses the execution, then returns to normal instruction when given another run command. Issuing the same command sequence using a DSS script causes the program counter on the MSP430 to jump to the address 0x00002 and then freeze.
The project requirements are such that it's not an option to repeatedly run scripts inside CCS, so I need a way to use a script. Is there a better way to pause the processor mid-execution via the scripting interface? Is there something that CCS is doing internally that I should replicate to get the same results? I appreciate your help!
Thank you,
Matthew