Crash and Watchdog Diagnostics#
Crash and watchdog diagnostic functions.
See diagnostic.h for source code.
Functions#
Returns the number of bytes used in the main stack.
Print a summary of crash details.
Print the complete, decoded crash details.
Print the complete crash data.
If last reset was from an assert, return saved assert information.
Macros#
Macro evaluating to true if the last reset was a crash, false otherwise.
Function Documentation#
halGetMainStackBytesUsed#
uint32_t halGetMainStackBytesUsed (void )
Returns the number of bytes used in the main stack.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
The number of bytes used in the main stack.
halPrintCrashSummary#
void halPrintCrashSummary (uint8_t port)
Print a summary of crash details.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | port | Serial port number (0 or 1). |
halPrintCrashDetails#
void halPrintCrashDetails (uint8_t port)
Print the complete, decoded crash details.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | port | Serial port number (0 or 1). |
halPrintCrashData#
void halPrintCrashData (uint8_t port)
Print the complete crash data.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | port | Serial port number (0 or 1). |
halGetAssertInfo#
const HalAssertInfoType* halGetAssertInfo (void )
If last reset was from an assert, return saved assert information.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
Pointer to struct containing assert filename and line.