Implement a Custom emuSync Hook
In this topic:
This is a step-by-step example of a situation where you want a custom Python script to run after a Stop command is executed on the CPU. For more information refer to emuSync Hooks.
The hook must be passed an instance of the ConnectionMgr class.
Prepare the Python script. |
The script file is called onStopScript.py and it is located in the Desktop. Inside the file, there is a function called onStopHook which is the one you want emuSync to run after Stop commands.
import isystem.connect as ic |
Update the onStop hook in the configuration file: |
•hookPath - Python script path.
•hookStart - Python method/function you wish to call.
•isActive - True.
module: |
Save the configuration file and then open it in emuSync. |
•Multi-Core and Multi-SoC Synchronization - Overview
•emuSync - Overview