Does your program use SYS/BIOS (aka TI-RTOS)? For SYS/BIOS programs the exit function will be called if an error is detected by SYS/BIOS. For a bare-metal program exit will be called if the main function returns.
↧