__exit in IAR

When an application exits prematurely in IAR, the fault condition is displayed in the Terminal I/O window. With IAR, the Terminal I/O window does not open automatically. To the developer, the application will simply halt at __exit as shown in exit_iar.

../_images/__exit_iar.png

Disassembly view when an IAR application terminates.

In such an event, you will need to manually open the Terminal I/O window under ViewTerminal I/O so you can see the cause for the fault. Alternatively, you can also use ROV to determine the cause for the fault.

../_images/__exit_iar_terminal_io.png

Sample output of the Terminal I/O window when an exception occured.