pub enum RiscvError {
    DmiTransfer(DmiOperationStatus),
    DebugProbe(DebugProbeError),
    Timeout,
    AbstractCommand(AbstractCommandErrorKind),
    RequestNotAcknowledged,
    UnsupportedDebugTransportModuleVersion(u8),
    UnsupportedDebugModuleVersion(DebugModuleVersion),
    UnsupportedProgramBufferRegister(usize),
    ProgramBufferTooSmall,
    UnsupportedBusAccessWidth(RiscvBusAccess),
    SystemBusAccess,
    UnexpectedTriggerType(u32),
}
Expand description

Something error occurered when working with the RISC-V core.

Variants

DmiTransfer(DmiOperationStatus)

An error during read/write of the DMI register happened.

DebugProbe(DebugProbeError)

An error with operating the debug probe occurred.

Timeout

A timeout occurred during JTAG register access.

AbstractCommand(AbstractCommandErrorKind)

An error occurred during the execution of an abstract command.

RequestNotAcknowledged

The request for reset, resume or halt was not acknowledged.

UnsupportedDebugTransportModuleVersion(u8)

This debug transport module (DTM) version is currently not supported.

UnsupportedDebugModuleVersion(DebugModuleVersion)

This version of the debug module is not supported.

UnsupportedProgramBufferRegister(usize)

The given program buffer register is not supported.

ProgramBufferTooSmall

The program buffer is too small for the supplied program.

UnsupportedBusAccessWidth(RiscvBusAccess)

Memory width larger than 32 bits is not supported yet.

SystemBusAccess

An error during system bus access occurred.

UnexpectedTriggerType(u32)

The given trigger type is not available for the address breakpoint.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.