winIDEA SDK
Loading...
Searching...
No Matches
test_run_until_return.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
# (c) TASKING Germany GmbH, 2023
#
# In this Python example, you connect to the winIDEA instance,
# create an execution controller, reset the CPU, and go to the function 'get_random'.
# The CPU is then run until the end of the function and a message is printed.
# At the end, the test_runUntilReturn() function is called.
import isystem.connect as ic
winidea_id = ''
def test_runUntilReturn():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
execCtrl = ic.CExecutionController(connMgr)
execCtrl.reset()
execCtrl.gotoFunction('SoCInit')
print("Running CPU until the end of the function 'SoCInit'...")
execCtrl.runUntilReturn(ic.CExecutionController.TOUT_1s, False)
if __name__ == "__main__":
test_runUntilReturn()