ECE 486 Support Libraries
Error Handling Interface

When an error is detected, an error code is recorded in a circularly accessed global error buffer (errorbuf), and the red LED (Port D, Pin 14) is lit to indicate the error condition to the user. Users may then use a debugger to investigate error buffer to learn the cause of the most recent sequence of errors.

An error message is also written to the output serial port for the first error thrown.