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.
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