We are trying to do automation to run the tests using debugger. But when we run debugger using script.ds (have load and run commands). After run command it is disconnecting abruptly. Need a solution to run the script and disconnects when it hit quit command.
How are you using the script? It should be a debug initialization script, not a target initialization script, such as:
You can put 'quit' in the script if you wish, for example:
Thank you for the reply. I am using in command line and when I use pause , it is just pausing 10s and quits I need a script which runs all the tests and disconnect automatically. When I use wait with certain seconds, the tests are running but at the end it quits after that certain seconds instead after completing the tests.
I am looking for script which doesn't quit abruptly, It just need to run the tests and quits.
The 'wait' command is generally used to wait until a breakpoint is hit - an optional timeout can be added in case that breakpoint is never hit.https://developer.arm.com/documentation/101471/2022-1/Arm-Debugger-commands/Arm-Debugger-commands-listed-in-alphabetical-order/wait
Would something like this work for you?
# set temp hw breakpoint at end of execution
# wait until breakpoint hit
# optionally add long timeout in case execution never completes