Home > User Support > CoverageMaster winAMS FAQ

CoverageMaster winAMS FAQ

Object File, OMF Conversion

316_01: How to test an interrupt handler?

Question:

I want to test an interrupt handler function, but the CoverageMaster simulation does not complete and test results are not output. How can it be tested?

Answer:

To execute a function correctly, CoverageMaster requires a return code at the end of function. Interrupt handlers do not include return code, and the way function arguments are passed is also different, thus they cannot be tested. In order to test an interrupt handler you must remove the interrupt function declaration and recompile it as a normal function.

For example, if the interrupt handler is defined as follows.

__interrupt void irq_handler()

For following can be added to a header file in order to disable the __interrupt definition.

#define __interrupt


Related Technical Tips Search

Other technical tips in GAIO's web site can be searched for using the links below.

Search key word link: Interrupt
Technical Tips Google Search


Information Links