pub struct AtSAME5x {}
Expand description

Marker struct indicating initialization sequencing for ATSAM D5x/E5x family parts.

Implementations§

Create the sequencer for the ATSAM D5x/E5x family of parts.

Perform a Chip-Erase operation

Issue a Chip-Erase command to the device provided that permission grants erase-all.

Errors

This operation can fail due to insufficient permissions, or if Chip-Erase Lock is enabled (this lock can only be released from within the device firmare). After a successful Chip-Erase a DebugProbeError::ReAttachRequired is returned to signal that a re-connect is needed for the DSU to start operating in unlocked mode.

Perform a hardware reset in a way that puts the core into CPU Reset Extension

CPU Reset Extension is a vendor specific feature that allows the CPU core to remain in reset while the rest of the debugging subsystem can run and initialize itself.

For more details see: 12.6.2 CPU Reset Extension in the SAM D5/E5 Family Data Sheet

Errors

Subject to probe communication errors

Release the CPU core from Reset Extension

Clear the DSU Reset Extension bit, which releases the core from reset extension.

Errors

Subject to probe communication errors

Perform a normal hardware reset without triggering a Reset extension

Errors

Subject to probe communication errors

Trait Implementations§

reset_hardware_assert for ATSAM D5x/E5x devices

Instead of keeping nReset asserted, the device is instead put into CPU Reset Extension which will keep the CPU Core in reset until manually released by the debugger probe.

reset_hardware_deassert for ATSAM D5x/E5x devices

Instead of de-asserting nReset here (this was already done during the CPU Reset Extension process), the device is released from Reset Extension.

debug_device_unlock for ATSAM D5x/E5x devices

First check the device lock status by querying its Device Service Unit (DSU). If the device is already unlocked then return Ok directly. If the device is locked the following happens:

  • If the erase_all permission is missing return the appropriate error
  • If the Chip-Erase command is also locked then return an error since Chip-Erase Unlock can only be done from within the device firmware.
  • Perform a Chip-Erase to unlock the device and if successful return a DebugProbeError::ReAttachRequired to signal that a probe re-attach is required before the new unlocked status takes effect.
Return the Debug Erase Sequence implementation if it exists
Prepare the target debug port for connection. This is based on the DebugPortSetup function from the ARM SVD Debug Description.
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.
Enable target trace capture. Read more
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.
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.
Executed when the debugger session is disconnected from the core. Read more
Perform Chip-Erase by vendor specific means. Read more

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
Converts self into T using Into<T>. Read more
Causes self to use its Binary implementation when Debug-formatted.
Causes self to use its Display implementation when Debug-formatted.
Causes self to use its LowerExp implementation when Debug-formatted.
Causes self to use its LowerHex implementation when Debug-formatted.
Causes self to use its Octal implementation when Debug-formatted.
Causes self to use its Pointer implementation when Debug-formatted.
Causes self to use its UpperExp implementation when Debug-formatted.
Causes self to use its UpperHex implementation when Debug-formatted.
Formats each item in a sequence. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Pipes by value. This is generally the method you want to use. Read more
Borrows self and passes that borrow into the pipe function. Read more
Mutably borrows self and passes that borrow into the pipe function. Read more
Borrows self, then passes self.borrow() into the pipe function. Read more
Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Borrows self, then passes self.as_ref() into the pipe function.
Mutably borrows self, then passes self.as_mut() into the pipe function.
Borrows self, then passes self.deref() into the pipe function.
Mutably borrows self, then passes self.deref_mut() into the pipe function.
Immutable access to a value. Read more
Mutable access to a value. Read more
Immutable access to the Borrow<B> of a value. Read more
Mutable access to the BorrowMut<B> of a value. Read more
Immutable access to the AsRef<R> view of a value. Read more
Mutable access to the AsMut<R> view of a value. Read more
Immutable access to the Deref::Target of a value. Read more
Mutable access to the Deref::Target of a value. Read more
Calls .tap() only in debug builds, and is erased in release builds.
Calls .tap_mut() only in debug builds, and is erased in release builds.
Calls .tap_borrow() only in debug builds, and is erased in release builds.
Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Calls .tap_ref() only in debug builds, and is erased in release builds.
Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Calls .tap_deref() only in debug builds, and is erased in release builds.
Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Attempts to convert self into T using TryInto<T>. 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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more