Crash and Watchdog Diagnostics#

Crash and watchdog diagnostic functions.

See diagnostic.h for source code.

Functions#

uint32_t

Returns the number of bytes used in the main stack.

void
halPrintCrashSummary(uint8_t port)

Print a summary of crash details.

void
halPrintCrashDetails(uint8_t port)

Print the complete, decoded crash details.

void
halPrintCrashData(uint8_t port)

Print the complete crash data.

const HalAssertInfoType *

If last reset was from an assert, return saved assert information.

Macros#

#define

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.

Parameters
N/A

Returns

  • The number of bytes used in the main stack.


Definition at line 609 of file /Users/vihuszar/Git/EmbeddedSoftware/super/platform/base/hal/micro/cortexm3/diagnostic.h

halPrintCrashSummary#

void halPrintCrashSummary (uint8_t port)

Print a summary of crash details.

Parameters
N/Aport

Serial port number (0 or 1).


Definition at line 615 of file /Users/vihuszar/Git/EmbeddedSoftware/super/platform/base/hal/micro/cortexm3/diagnostic.h

halPrintCrashDetails#

void halPrintCrashDetails (uint8_t port)

Print the complete, decoded crash details.

Parameters
N/Aport

Serial port number (0 or 1).


Definition at line 621 of file /Users/vihuszar/Git/EmbeddedSoftware/super/platform/base/hal/micro/cortexm3/diagnostic.h

halPrintCrashData#

void halPrintCrashData (uint8_t port)

Print the complete crash data.

Parameters
N/Aport

Serial port number (0 or 1).


Definition at line 627 of file /Users/vihuszar/Git/EmbeddedSoftware/super/platform/base/hal/micro/cortexm3/diagnostic.h

halGetAssertInfo#

const HalAssertInfoType* halGetAssertInfo (void )

If last reset was from an assert, return saved assert information.

Parameters
N/A

Returns

  • Pointer to struct containing assert filename and line.


Definition at line 633 of file /Users/vihuszar/Git/EmbeddedSoftware/super/platform/base/hal/micro/cortexm3/diagnostic.h

Macro Definition Documentation#

halResetWasCrash#

#define halResetWasCrash
Value:
()

Macro evaluating to true if the last reset was a crash, false otherwise.


Definition at line 602 of file /Users/vihuszar/Git/EmbeddedSoftware/super/platform/base/hal/micro/cortexm3/diagnostic.h