This section describes how to set up hooks in the debug tool by using the hook transaction function.
By setting up hook transaction, it is possible to automatically change the I/O register and CPU register values before or after downloading a load module or after resetting the CPU.
You can configure hook transaction in the [Hook Transaction Settings] category of the [Hook Transaction Settings] tab on the Property panel.
You can increase the download speed by configuring the I/O register in the [Before download] property. Equally, you can facilitate downloading to external RAM by the setting in this category. |
Each property in the [Hook Transaction Settings] category shows the timing with which a hook transaction is performed. The numeral shown in bracket [ ] for each property value indicates the number of currently specified transactions. (No hook transactions are set by default.)
Follow the procedure below to perform hook transaction on the desired property.
To specify the transaction, select the desired property and click the [...] button that appears on the right end of the column. This will open the Text Edit dialog box in which you can specify the transaction.
In this dialog box, enter the desired transaction directly from the keyboard.
You can use one of the following formats for specifying the desired transaction.
Overwrites the I/O register contents with numeric values.
Overwrites the CPU register contents with numeric values.
Executes a script file designated by Python script path (absolute path or relative path using project folder as a base).
The following commands can be used in a Python script to be executed as a hook process of the debugger. |
If you wish to execute other Python commands, use the Hook command of the Python console.
You can enter up to 64 characters for one transaction and can specify up to 128 transactions for each property. (One line in the [Text] area in the Text Edit dialog box corresponds to one transaction.)
When finished with specifying the transaction, click [OK] to reflect it in the Property panel.