Functions
In the Functions tab, two optional functions can be selected. The first will be run after each test function has been executed and is referred to as the post-function. The second function runs after all tests have completed and is referred to as the post-testing function. There is a checkbox for the post-testing function to choose whether the function will be run before the log file is written out or after.

When dynamic chains are in use in the project, a profile option is available for each function. Unless otherwise specified, the post-function will use the same profile as the test function it runs after and the post-testing function will use whichever profile is selected as the default. If a specific profile is chosen for the post-function, it will be switched to everytime the function runs.
If a project has variants defined, the profile option is replaced with a button to Select Variants... or Select Profiles... depending on whether dynamic chains are in use in the project too. The Variant-Profile Mapping dialog allows the functions to be disabled and/or configured for each variant. By default all variants will use the same profile when running post functions.
Board Initialisation Functions
On the bottom half of the screen are the Board Initialisation Functions. These functions are designed to bring a new board into a known state. These functions will be run:
- Before each run of the Debug Connection Test tool.
- On the Analyser screen, these functions are run once before starting or stepping the chain. If a hard reset is applied or the board is changed, these functions are run once again before starting or stepping the chain. They are not run when resuming after pausing or after a soft reset.
Board Initialisation functions will be run after any Test Reset sequence that is set. If any of the Board Initialisation functions fail, the remaining functions are not run.
Setting the board initialisation functions
Clicking Edit launches a pop-up window to select the functions to run. This works in the same way as adding functions to an XJRunner test. This means that Board Initialisation Functions must be in the same form as any other test function.
See Also
XJTAG v4.1.100