Repository : ssh://git@diktynna/doc
On branches: backup-redmine/2021-08-07,backup-redmine/2021-09-11,backup-redmine/2021-10-09,backup-redmine/2021-11-13,backup-redmine/2021-12-11,backup-redmine/2022-01-08,backup-redmine/2022-02-12,backup-redmine/2022-03-12,backup-redmine/2022-04-09,backup-redmine/2022-05-07,backup-redmine/2022-06-11,backup-redmine/2022-08-06,backup-redmine/2022-10-07,backup-redmine/2022-11-14,backup-redmine/2023-01-14,main
commit fc43b9153c59b5880a470971211b06f98973a02b Author: Sven Eckelmann sven@narfation.org Date: Mon Jul 26 19:49:51 2021 +0000
doc: open-mesh/Kernel_debugging_over_JTAG
fc43b9153c59b5880a470971211b06f98973a02b open-mesh/Kernel_debugging_over_JTAG.textile | 39 +++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/open-mesh/Kernel_debugging_over_JTAG.textile b/open-mesh/Kernel_debugging_over_JTAG.textile index 66b7da35..0f4ca1ae 100644 --- a/open-mesh/Kernel_debugging_over_JTAG.textile +++ b/open-mesh/Kernel_debugging_over_JTAG.textile @@ -58,7 +58,7 @@ EOF </code></pre>
-h3. Raspberry PI (4 B) +h3. Raspberry PI (4 B) adapter board
The Raspberry PI 4B can be used as a simple adapter board because there are plenty of GPIOs available and OpenOCD is able to control them directly. But it is a rather slow debug adapter compared to one which was specifically build for this purpose. For example a <code>flash read_bank 0 flash.img 0 65536</code> takes 117.896889s.
@@ -103,6 +103,43 @@ bindto 0.0.0.0 EOF </code></pre>
+h3. Bus Pirate adapter board + +The Bus Pirate's SPI pins can also be used for JTAG. But it is an extremely slow debug adapter compared to one which was specifically build for this purpose. + +Just connect: + +* TDO: MISO +* TDI: MOSI +* TMS: CS +* TCK: SCK +* GND: GND + +The configuration of the adapter board and the target board is also straight forward since the release of OpenOCD 0.11 + +<pre><code class="diff"> +cat > jtag_debug.cfg << "EOF" +source [find interface/buspirate.cfg] + +buspirate_vreg 0 +buspirate_mode normal +buspirate_pullup 0 + +buspirate_port /dev/ttyUSB2 + +adapter speed 1000 +transport select jtag + +# in case to start debugging session without "reset halt": +# "reset halt" would be necessary here because otherwise the flash chip cannot +# be detected and the gdb attach fails with +# "Unknown flash device (ID 0x00000000)" +gdb_memory_map disable + +source [find board/8devices-lima.cfg] +EOF +</code></pre> + h3. 8devices target board
The board which should run the firmware must be connected to at least following pins of the debug adapter hardware: