CuVoodoo

the sorcery of copper

User Tools

Site Tools


jtag

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
jtag [2017/03/30 15:46] – add BMP kingkevinjtag [2017/04/13 12:10] – [Baite] add v2a kingkevin
Line 125: Line 125:
 {{:jtag:baite_board_back.jpg?0x100|board front}} {{:jtag:baite_board_back.jpg?0x100|board front}}
  
-The [[https://www.aliexpress.com/store/213957|Baite]] [[https://www.aliexpress.com/store/product/Best-Quality-ST-Link-stlink-V2-for-STM8S-STM8L-STM32-Cortex-M0-Cortex-M3-SWIM-JTAG/213957_32676015777.html|ST-Link V2]] is my favorite clone since it supports JTAG, SWD, and SWIM (for STM8).+The [[http://betemcu.cn/|Baite]] [[https://www.aliexpress.com/store/product/Best-Quality-ST-Link-stlink-V2-for-STM8S-STM8L-STM32-Cortex-M0-Cortex-M3-SWIM-JTAG/213957_32676015777.html|ST-Link V2]] is my favorite clone since it supports JTAG, SWD, and SWIM (for STM8).
  
 The seem to use the same board also for several other programmers, and since the pinout is not on the case I've decided to make my own sticker. The seem to use the same board also for several other programmers, and since the pinout is not on the case I've decided to make my own sticker.
Line 134: Line 134:
 I've also reversed the board layout to get the {{:jtag:baite_schematic.pdf|schematic}}. I've also reversed the board layout to get the {{:jtag:baite_schematic.pdf|schematic}}.
 The connector pins are all protected with 220 ohms resistors. The connector pins are all protected with 220 ohms resistors.
 +
 +{{:jtag:baite-v2a-board_front.jpg?0x100|board front}}
 +{{:jtag:baite-v2a-board_back.jpg?0x100|board front}}
 +
 +There is a newer version marked as "V2A", but the {{:jtag:baite-v2a.pdf|schematic}} is pretty much the small with the following changes:
 +  * all pads for the micro-controller are present (there is even solder mask between them)
 +  * they added a SWD port
 +  * the STM32F103C8 has been replaced with a STM32F101CB, but they are treating it as a STM32F103 (like the other cheap dongles)
 +  * the passives are smaller
 +  * the routing is horrible
  
 ===== Black Magic Probe ===== ===== Black Magic Probe =====
Line 155: Line 165:
 This has less power pins (who needs 2xGND, 2x5V, 3x3.3V anyway), but provides enough function pins to add UART (and SRST). This has less power pins (who needs 2xGND, 2x5V, 3x3.3V anyway), but provides enough function pins to add UART (and SRST).
  
-To build the firmware:+To build the firmware ([[https://sourceforge.net/p/blackmagicdebug/mailman/message/35762464/|patch]] integration pending):
 <code bash> <code bash>
 git clone https://github.com/blacksphere/blackmagic git clone https://github.com/blacksphere/blackmagic
Line 161: Line 171:
 git submodule init git submodule init
 git submodule update git submodule update
 +wget -O 0001-add-new-platform-Baite-ST-Link-V2-clone.patch "https://sourceforge.net/p/blackmagicdebug/mailman/attachment/20170401092652.GA15475%40coil/1/"
 +patch -p1 < 0001-add-new-platform-Baite-ST-Link-V2-clone.patch
 make make
 cd src cd src
Line 213: Line 225:
 or short RX to ground (pin 5 and 7) to force the DFU bootloader start when plugin in the dongle (in case the main application is buggy). or short RX to ground (pin 5 and 7) to force the DFU bootloader start when plugin in the dongle (in case the main application is buggy).
  
-Here is the new "BMP Baite" pinout:+Here is the new "BMP Baite" {{ :jtag:bmp_baite.pdf |pinout}}:
 ^ signal ^ pin ^ pin ^ signal ^ ^ signal ^ pin ^ pin ^ signal ^
 | SRST | 1 | 2| +3.3V | | SRST | 1 | 2| +3.3V |
Line 220: Line 232:
 | GND | 7 | 8 | JTDO/TRACESWO | | GND | 7 | 8 | JTDO/TRACESWO |
 | TX | 9 | 10 | JTDI | | TX | 9 | 10 | JTDI |
 +
 +**note**: the RX pin is pulled up by a 620 ohms resistor. Thus the TX connected to BMP Baite must by strong enough to drive it low (e.g. not like with the CH340 USB to UART converter).
  
 If you connect SRST to the target NRST, it is even possible to reset the target board without having to press on the on-board reset button (of there is any): If you connect SRST to the target NRST, it is even possible to reset the target board without having to press on the on-board reset button (of there is any):
jtag.txt · Last modified: 2024/01/07 17:49 by 127.0.0.1