BootloaderDiagnosticData

Represents one piece of diagnostic data the bootloader keeps about the device.

Each subtype covers one thing the bootloader records: why the device last reset, the details of a crash, or how recent firmware updates went. Crash reports are split across several parts because one exchange with the device cannot carry them whole, so a full picture needs every part of a set.

Most values are raw register or status codes meant for Efento to interpret rather than to show to users.

Inheritors

Types

Link copied to clipboard
data class ApplicationAssertion(val assertionTimestamp: Long, val assertionFileId: String, val assertionLineNumber: Int) : BootloaderDiagnosticData

The application hit a failed assertion.

Link copied to clipboard
data class ApplicationHardFaultPart1(val hardFaultFlag: Int, val cfsrRegister: Int, val hfsrRegister: Int, val mmfarRegister: Int) : BootloaderDiagnosticData

First part of an application crash report: the fault status registers.

Link copied to clipboard
data class ApplicationHardFaultPart2(val bfarRegister: Int, val r0Register: Int, val r1Register: Int, val r2Register: Int) : BootloaderDiagnosticData

Second part of an application crash report: the faulting address and the first stacked registers.

Link copied to clipboard
data class ApplicationHardFaultPart3(val r3Register: Int, val r12Register: Int, val lrRegister: Int, val pcRegister: Int) : BootloaderDiagnosticData

Third part of an application crash report: the remaining stacked registers, including where it was executing.

Link copied to clipboard

Fourth part of an application crash report.

Link copied to clipboard
data class BootloaderAssertion(val assertionTimestamp: Long, val assertionFileId: String, val assertionLineNumber: Int) : BootloaderDiagnosticData

The bootloader itself hit a failed assertion.

Link copied to clipboard
data class BootloaderHardFaultPart1(val hardFaultFlag: Int, val cfsrRegister: Int, val hfsrRegister: Int, val mmfarRegister: Int) : BootloaderDiagnosticData

First part of a bootloader crash report: the fault status registers.

Link copied to clipboard
data class BootloaderHardFaultPart2(val bfarRegister: Int, val r0Register: Int, val r1Register: Int, val r2Register: Int) : BootloaderDiagnosticData

Second part of a bootloader crash report: the faulting address and the first stacked registers.

Link copied to clipboard
data class BootloaderHardFaultPart3(val r3Register: Int, val r12Register: Int, val lrRegister: Int, val pcRegister: Int) : BootloaderDiagnosticData

Third part of a bootloader crash report: the remaining stacked registers, including where it was executing.

Link copied to clipboard

Fourth part of a bootloader crash report.

Link copied to clipboard
data class DeadEntityOfApplication(val deadEntityId: Int, val deadEntityCounter: Int) : BootloaderDiagnosticData

A supervised part of the application stopped responding.

Link copied to clipboard
data class DeviceReset(val resetReason: Int, val appResetCounter: Int, val appResetLoopCounter: Int, val appUptimeSeconds: Int) : BootloaderDiagnosticData

Why the device last restarted, and how often it has been restarting.

Link copied to clipboard

Piece of diagnostic data to ask the bootloader for.

Link copied to clipboard
data class FactoryApplicationVersion(val version: SoftwareVersion, val programmingTimestamp: Long) : BootloaderDiagnosticData

Firmware the device left the factory with.

Link copied to clipboard
data class LastUpdateCheckStatus(val timestamp: Long, val updateStatus: Int) : BootloaderDiagnosticData

Outcome of the last time the device checked for a firmware update.

Link copied to clipboard
data class UpdateStatusRecord(val updateType: Int, val requester: Int, val timestamp: Long, val status: Int, val errorCounter: Int, val error: Int, val extraFlags: Int, val extensionData: Int) : BootloaderDiagnosticData

One of the last four firmware update attempts the device recorded.

Properties

Link copied to clipboard

Which piece of diagnostic data this is.