Exception Codes

This topic describes the following types of exceptions:

eRTOS Exception Codes

eRTOS displays console notifications for certain occurrences in the kernel, such as licensing errors, hardware exceptions, and system exceptions. These notifications appear as balloon pop-ups and are also logged to the Windows Event Viewer. Notification codes and descriptions are listed in the tables below.

Licensing Errors

Code Notification Text
RTSS_1_0001

The eRTOS Evaluation period has expired. Please contact IntervalZero, Inc. at www.intervalzero.com or +1 781-996-4481 to obtain a full-use version.

RTSS_1_0002

No eRTOS license is available. Please contact IntervalZero, Inc. at www.intervalzero.com or +1 781-996-4481.

RTSS_1_0003

The TCP/IP feature Evaluation period has expired. Please contact IntervalZero, Inc. at www.intervalzero.com or +1 781-996-4481 to obtain a full-use version.

RTSS_1_0004

The TCP/IP feature is not licensed. Please contact IntervalZero, Inc. at www.intervalzero.com or +1 781-996-4481.

RTSS_1_0005

eRTOS binary was not built with a licensed SDK. Please contact IntervalZero, Inc. at www.intervalzero.com or +1 781-996-4481.

RTSS_1_0006

An eRTOS binary or one of the RTDLLs it loads (implicitly or explicitly) was not built with a licensed SDK. Please contact IntervalZero, Inc. at www.intervalzero.com or +1 781-996-4481.

RTSS_1_0007

eRTOS binary is not supported to run on the currently installed eRTOS runtime. Please contact IntervalZero, Inc. at www.intervalzero.com or +1 781-996-4481.

RTSS_1_0008

An eRTOS binary or one of the RTDLLs it loads (implicitly or explicitly) is not supported to run on the currently installed eRTOS runtime. Please contact IntervalZero, Inc. at www.intervalzero.com or +1 781-996-4481.

RTSS_1_0009

An eRTOS binary or one of the RTDLLs it loads (explicitly or implicitly) is missing important internal license information. Please contact IntervalZero, Inc. at www.intervalzero.com or +1 781-996-4481.

RTSS_1_0010

An eRTOS binary or one of the RTDLLs it loads (explicitly or implicitly) was built using a non-eRTOS SDK and cannot be executed by eRTOS. Recompiling the binary using the eRTOS SDK will enable eRTOS to execute it.

Hardware Exceptions with x86/x64 Exception Error Codes

Code Notification Text
RTSS_2_0000 Divide By Zero
RTSS_2_0001 Debug Exception (Single-step)
RTSS_2_0002 Non-Maskable Interrupt
RTSS_2_0003 Breakpoint Exception
RTSS_2_0004 Overflow Exception
RTSS_2_0005 Bound Range Exceeded
RTSS_2_0006 Invalid Op Code
RTSS_2_0007 NPX Not Available
RTSS_2_0008 Double Fault
RTSS_2_0009 Coprocessor Segment Overrun
RTSS_2_000A Invalid TSS
RTSS_2_000B Segment Not Present
RTSS_2_000C Stack Fault
RTSS_2_000D General Protection Fault
RTSS_2_000E Memory Access Fault
RTSS_2_000F Reserved Trap
RTSS_2_0010 FPU Floating-Point Error
RTSS_2_0011 Alignment Check Exception
RTSS_2_0012 Machine-Check Exception
RTSS_2_0013 SIMD Floating-Point Exception
RTSS_2_0014 Noncontinuable Exception
RTSS_2_0015 Invalid Unwind
RTSS_2_0016 Bad Stack
RTSS_2_0017 Invalid Handler
RTSS_2_0018 Unknown Fault

Hardware Exceptions with Windows Exception Codes

Code Notification text
RTSS_3_0002 Data Type Misalignment
RTSS_3_0003 Break Point
RTSS_3_0004 Single Step
RTSS_3_0005 Access Violation
RTSS_3_001D Illegal Instruction
RTSS_3_008D Float Denormalized Operand
RTSS_3_008E Float Divided by Zero
RTSS_3_008F Float Inexact Result
RTSS_3_0090 Float Invalid Operation
RTSS_3_0091 Float Overflow
RTSS_3_0093 Float Underflow
RTSS_3_0094 Integer Divided by Zero
RTSS_3_0194 Possible Deadlock Condition

Exception Code Mapping

Following Windows behavior, Process maps the Intel (x86/x64) exception code to the Windows one, and then invokes Structured Exception Handling. eRTOS will alert the user via a statement and freeze or terminate the thread and associated process.

x64 Exception

Windows Mapping

EXCEPTION_DIVIDED_BY_ZERO

EXCEPTION_INT_DIVIDE_BY_ZERO
EXCEPTION_FLT_DIVIDE_BY_ZERO

EXCEPTION_NPX_OVERRUN

EXCEPTION_FLT_INVALID_OPERATION

EXCEPTION_NPX_ERROR

EXCEPTION_FLT_DENORMAL_OPERAND
EXCEPTION_FLT_DIVIDE_BY_ZERO
EXCEPTION_FLT_OVERFLOW
EXCEPTION_FLT_UNDERFLOW
EXCEPTION_FLT_INEXACT_RESULT
EXCEPTION_FLT_INVALID_OPERATION

EXCEPTION_INVALID_OPCODE

EXCEPTION_ILLEGAL_INSTRUCTION

EXCEPTION_GP_FAULT
EXCEPTION_PAGE_FAULT
EXCEPTION_BOUND_CHECK
EXCEPTION_SEGMENT_NOT_PRESENT

EXCEPTION_ACCESS_VIOLATION

EXCEPTION_DEBUG

EXCEPTION_BREAKPOINT

EXCEPTION_ALIGNMENT_CHECK

EXCEPTION_DATATYPE_MISALIGNMENT

Related topics: