Struct probe_rs::Core [−][src]
pub struct Core<'probe> { /* fields omitted */ }
Implementations
Wait until the core is halted. If the core does not halt on its own, a [DebugProbeError::Timeout] error will be returned.
Check if the core is halted. If the core does not halt on its own, a [DebugProbeError::Timeout] error will be returned.
Try to halt the core. This function ensures the core is actually halted, and returns a [DebugProbeError::Timeout] otherwise.
Reset the core, and then continue to execute instructions. If the core
should be halted after reset, use the reset_and_halt
function.
Reset the core, and then immediately halt. To continue execution after
reset, use the reset
function.
Steps one instruction and then enters halted state again.
pub fn read_core_reg(
&mut self,
address: impl Into<CoreRegisterAddress>
) -> Result<u32, Error>
pub fn write_core_reg(
&mut self,
address: CoreRegisterAddress,
value: u32
) -> Result<(), Error>
Set a hardware breakpoint
This function will try to set a hardware breakpoint. The amount
of hardware breakpoints which are supported is chip specific,
and can be queried using the get_available_breakpoint_units
function.
Clear all hardware breakpoints
This function will clear all HW breakpoints which are configured on the target,
regardless if they are set by probe-rs, AND regardless if they are enabled or not.
Also used as a helper function in [Session::drop
].
Trait Implementations
Read a 32bit word of at address
. Read more
Read a block of 32bit words at address
. Read more
Read a block of 8bit words at address
.
Write a 32bit word at address
. Read more
Write an 8bit word at address
.
Write a block of 32bit words at address
. Read more
Write a block of 8bit words at address
.
Reads bytes using 32 bit memory access. Address must be 32 bit aligned and data must be an exact multiple of 4. Read more
Auto Trait Implementations
impl<'probe> !RefUnwindSafe for Core<'probe>
impl<'probe> !UnwindSafe for Core<'probe>