mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-05-21 15:16:57 +02:00
94 lines
4.4 KiB
XML
94 lines
4.4 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800">
|
|
<style>
|
|
.bg{fill:#0a0a0f}.pnl{fill:#12121a;stroke:#1a1a2e}.hdr{fill:#12121a}
|
|
.title{font:bold 42px 'Courier New',monospace;fill:#00ff41}
|
|
.sub{font:bold 28px 'Courier New',monospace;fill:#00d4ff}
|
|
.txt{font:24px 'Courier New',monospace;fill:#c0c0c0}
|
|
.dim{font:20px 'Courier New',monospace;fill:#888}
|
|
.grn{font:bold 24px 'Courier New',monospace;fill:#00ff41}
|
|
.red{font:bold 24px 'Courier New',monospace;fill:#ff0040}
|
|
.cyn{font:bold 24px 'Courier New',monospace;fill:#00d4ff}
|
|
.amb{font:bold 24px 'Courier New',monospace;fill:#ffaa00}
|
|
.badge{stroke:#00ff41;rx:14}
|
|
</style>
|
|
<rect class="bg" width="1200" height="800"/>
|
|
|
|
<!-- Title -->
|
|
<text x="600" y="52" text-anchor="middle" class="title">GDB-OpenOCD Chain</text>
|
|
<text x="600" y="88" text-anchor="middle" class="dim">Debug Toolchain</text>
|
|
|
|
<!-- Top Panel: Debug Chain Flow -->
|
|
<rect x="30" y="105" width="1140" height="280" class="pnl" rx="8"/>
|
|
<text x="600" y="148" text-anchor="middle" class="sub">Debug Toolchain</text>
|
|
<line x1="50" y1="163" x2="1150" y2="163" stroke="#1a1a2e"/>
|
|
|
|
<!-- GDB box -->
|
|
<rect x="55" y="190" width="220" height="80" rx="6" fill="#0f1a0f" stroke="#00ff41" stroke-width="2"/>
|
|
<text x="165" y="225" text-anchor="middle" class="grn">GDB</text>
|
|
<text x="165" y="255" text-anchor="middle" class="dim">Client</text>
|
|
|
|
<!-- Arrow -->
|
|
<line x1="275" y1="230" x2="340" y2="230" stroke="#888888" stroke-width="3"/>
|
|
<polygon points="340,220 365,230 340,240" fill="#888888"/>
|
|
<text x="310" y="290" text-anchor="middle" class="dim">TCP</text>
|
|
<text x="310" y="315" text-anchor="middle" class="dim">:3333</text>
|
|
|
|
<!-- OpenOCD box -->
|
|
<rect x="370" y="190" width="250" height="80" rx="6" fill="#0f0f1a" stroke="#00d4ff" stroke-width="2"/>
|
|
<text x="495" y="225" text-anchor="middle" class="cyn">OpenOCD</text>
|
|
<text x="495" y="255" text-anchor="middle" class="dim">Server</text>
|
|
|
|
<!-- Arrow -->
|
|
<line x1="620" y1="230" x2="685" y2="230" stroke="#888888" stroke-width="3"/>
|
|
<polygon points="685,220 710,230 685,240" fill="#888888"/>
|
|
<text x="655" y="290" text-anchor="middle" class="dim">USB</text>
|
|
|
|
<!-- Debug Probe box -->
|
|
<rect x="715" y="190" width="220" height="80" rx="6" fill="#1a1a0f" stroke="#ffaa00" stroke-width="2"/>
|
|
<text x="825" y="225" text-anchor="middle" class="amb">CMSIS-DAP</text>
|
|
<text x="825" y="255" text-anchor="middle" class="dim">Probe</text>
|
|
|
|
<!-- Arrow -->
|
|
<line x1="935" y1="230" x2="1000" y2="230" stroke="#888888" stroke-width="3"/>
|
|
<polygon points="1000,220 1025,230 1000,240" fill="#888888"/>
|
|
<text x="975" y="290" text-anchor="middle" class="dim">SWD</text>
|
|
|
|
<!-- Target box -->
|
|
<rect x="1030" y="190" width="130" height="80" rx="6" fill="#1a0f0f" stroke="#ff0040" stroke-width="2"/>
|
|
<text x="1095" y="225" text-anchor="middle" class="red">RP2350</text>
|
|
<text x="1095" y="255" text-anchor="middle" class="dim">Target</text>
|
|
|
|
<!-- Bottom Left: GDB Commands -->
|
|
<rect x="30" y="405" width="560" height="375" class="pnl" rx="8"/>
|
|
<text x="310" y="448" text-anchor="middle" class="sub">GDB Commands</text>
|
|
<line x1="50" y1="463" x2="570" y2="463" stroke="#1a1a2e"/>
|
|
|
|
<text x="55" y="500" class="grn">target remote :3333</text>
|
|
<text x="55" y="532" class="dim">Connect to OpenOCD</text>
|
|
|
|
<text x="55" y="572" class="grn">monitor reset halt</text>
|
|
<text x="55" y="604" class="dim">Reset + stop at entry</text>
|
|
|
|
<text x="55" y="644" class="grn">break main</text>
|
|
<text x="55" y="676" class="dim">Set breakpoint</text>
|
|
|
|
<text x="55" y="716" class="grn">info registers</text>
|
|
<text x="55" y="748" class="dim">Dump all regs</text>
|
|
|
|
<!-- Bottom Right: SWD Details -->
|
|
<rect x="620" y="405" width="550" height="375" class="pnl" rx="8"/>
|
|
<text x="895" y="448" text-anchor="middle" class="sub">SWD Protocol</text>
|
|
<line x1="640" y1="463" x2="1150" y2="463" stroke="#1a1a2e"/>
|
|
|
|
<text x="645" y="505" class="amb">2 wires only</text>
|
|
<text x="645" y="540" class="txt">SWCLK = clock</text>
|
|
<text x="645" y="572" class="txt">SWDIO = data</text>
|
|
|
|
<line x1="640" y1="600" x2="1150" y2="600" stroke="#1a1a2e"/>
|
|
|
|
<text x="645" y="640" class="red">Capabilities</text>
|
|
<text x="645" y="675" class="txt">Read/write memory</text>
|
|
<text x="645" y="707" class="txt">Read/write regs</text>
|
|
<text x="645" y="739" class="txt">Set breakpoints</text>
|
|
<text x="645" y="771" class="dim">Full chip control</text>
|
|
</svg> |