1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Provide flash operations on the target.
use crateArch;
use crateTarget;
use crateTargetResult;
/// Flash memory operations.
/// It's necessary to implement this extension to support GDB `load` command.
///
/// Typically, a GDB `load` command sequence starts by issuing a `flash_erase`
/// command, followed by multiple `flash_write` commands (typically one for each
/// loadable ELF section), and ends with a `flash_done` command.
///
/// The regions containing the addresses to be flashed must be specified as
/// "flash" regions in the memory map xml, returned by
/// [MemoryMap::memory_map_xml][crate::target::ext::memory_map::MemoryMap::memory_map_xml].
define_ext!;