Trait probe_rs::architecture::arm::sequences::ArmDebugSequence [−][src]
pub trait ArmDebugSequence: Send + Sync {
fn reset_hardware_assert(
&self,
interface: &mut dyn DapProbe
) -> Result<(), Error> { ... }
fn reset_hardware_deassert(
&self,
memory: &mut Memory<'_>
) -> Result<(), Error> { ... }
fn debug_port_setup(
&self,
interface: &mut Box<dyn DapProbe>
) -> Result<(), Error> { ... }
fn debug_port_start(
&self,
interface: &mut ArmCommunicationInterface<Initialized>,
dp: DpAddress
) -> Result<(), DebugProbeError> { ... }
fn debug_core_start(&self, core: &mut Memory<'_>) -> Result<(), Error> { ... }
fn reset_catch_set(&self, core: &mut Memory<'_>) -> Result<(), Error> { ... }
fn reset_catch_clear(&self, core: &mut Memory<'_>) -> Result<(), Error> { ... }
fn reset_system(&self, interface: &mut Memory<'_>) -> Result<(), Error> { ... }
fn debug_device_unlock(
&self,
_interface: &mut Memory<'_>
) -> Result<(), Error> { ... }
fn recover_support_start(
&self,
_interface: &mut Memory<'_>
) -> Result<(), Error> { ... }
}
Provided methods
fn reset_hardware_assert(
&self,
interface: &mut dyn DapProbe
) -> Result<(), Error>
fn reset_hardware_assert(
&self,
interface: &mut dyn DapProbe
) -> Result<(), Error>
Assert a system-wide reset line nRST. This is based on the
ResetHardwareAssert
function from the ARM SVD Debug Description.
De-Assert a system-wide reset line nRST. This is based on the
ResetHardwareDeassert
function from the ARM SVD Debug Description.
Prepare the target debug port for connection. This is based on the
DebugPortSetup
function from the ARM SVD Debug Description.
fn debug_port_start(
&self,
interface: &mut ArmCommunicationInterface<Initialized>,
dp: DpAddress
) -> Result<(), DebugProbeError>
fn debug_port_start(
&self,
interface: &mut ArmCommunicationInterface<Initialized>,
dp: DpAddress
) -> Result<(), DebugProbeError>
Connect to the target debug port and power it up. This is based on the
DebugPortStart
function from the ARM SVD Debug Description.
Initialize core debug system. This is based on the
DebugCoreStart
function from the ARM SVD Debug Description.
Configure the target to stop code execution after a reset. After this, the core will halt when it comes
out of reset. This is based on the ResetCatchSet
function from
the ARM SVD Debug Description.
Free hardware resources allocated by ResetCatchSet.
This is based on the ResetCatchSet
function from
the ARM SVD Debug Description.
Executes a system-wide reset without debug domain (or warm-reset that preserves debug connection) via software mechanisms,
for example AIRCR.SYSRESETREQ. This is based on the
ResetSystem
function from the ARM SVD Debug Description.
Check if the device is in a locked state and unlock it.
Use query command elements for user confirmation.
Executed after having powered up the debug port. This is based on the
DebugDeviceUnlock
function from the ARM SVD Debug Description.
Executed before step or run command to support recovery from a lost target connection, e.g. after a low power mode.
This is based on the RecoverSupportStart
function from the ARM SVD Debug Description.