Struct probe_rs_target::Chip
source · pub struct Chip {
pub name: String,
pub part: Option<u16>,
pub svd: Option<String>,
pub cores: Vec<Core>,
pub memory_map: Vec<MemoryRegion>,
pub flash_algorithms: Vec<String>,
pub rtt_scan_ranges: Option<Vec<Range<u64>>>,
pub jtag: Option<Jtag>,
pub default_binary_format: Option<BinaryFormat>,
}
Expand description
A single chip variant.
This describes an exact chip variant, including the cores, flash and memory size. For example,
the nRF52832
chip has two variants, nRF52832_xxAA
and nRF52832_xxBB
. For this case,
the struct will correspond to one of the variants, e.g. nRF52832_xxAA
.
Fields§
§name: String
This is the name of the chip in base form.
E.g. nRF52832
.
part: Option<u16>
The PART
register of the chip.
This value can be determined via the cli info
command.
svd: Option<String>
An URL to the SVD file for this chip.
cores: Vec<Core>
The cores available on the chip.
memory_map: Vec<MemoryRegion>
The memory regions available on the chip.
flash_algorithms: Vec<String>
Names of all flash algorithms available for this chip.
This can be used to look up the flash algorithm in the
ChipFamily::flash_algorithms
field.
rtt_scan_ranges: Option<Vec<Range<u64>>>
Specific memory ranges to search for a dynamic RTT header for code running on this chip.
This need not be specified for most chips because the default is
to search all RAM regions specified in memory_map
. However,
that behavior isn’t appropriate for some chips, such as those which
have a very large amount of RAM that would be time-consuming to
scan exhaustively.
If specified then this is a list of zero or more address ranges to
scan. Each address range must be enclosed in exactly one RAM region
from memory_map
. An empty list disables automatic scanning
altogether, in which case RTT will be enabled only when using an
executable image that includes the _SEGGER_RTT
symbol pointing
to the exact address of the RTT header.
jtag: Option<Jtag>
JTAG-specific options
default_binary_format: Option<BinaryFormat>
The default binary format for this chip