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/04/03 10:26] – [Black Magic Probe] add pinout kingkevinjtag [2017/04/25 14:07] kingkevin
Line 82: Line 82:
 One trick to get this ridiculously low price is to use STM32F101 micro-controllers. One trick to get this ridiculously low price is to use STM32F101 micro-controllers.
 Compared to the STM32F103 micro-controllers they offer less functionalities, like USB ... yet this is a USB dongle! Compared to the STM32F103 micro-controllers they offer less functionalities, like USB ... yet this is a USB dongle!
-Well this is because these micro-controllers use the same die, but if not all STM32F103 feature tests pass after production they get packages as STM32F101, and it seems that USB still works well enough ;).\\+Well this is because these micro-controllers use the same die, but if not all STM32F103 feature tests pass after production they get packages as STM32F101, but it seems that USB still works well enough
 +At least this is my guess. 
 +It would be interesting to check if the other STM32F103 peripherals normally not present on the STM32F101 work as well, but I wouldn't rely on these. 
 +After all, they are probably marked as STM32F101 for a good reason.\\
 Similarly the STM32F103C8 is only rated having 64 kB of flash because it didn't pass the flash test, compared to the 128 kB for the STM32F103CB, but they very often have more (you can verify by read/writing and check for errors). Similarly the STM32F103C8 is only rated having 64 kB of flash because it didn't pass the flash test, compared to the 128 kB for the STM32F103CB, but they very often have more (you can verify by read/writing and check for errors).
  
Line 108: Line 111:
 {{:jtag:reverse-gnd_internal-back.jpg?0x100|}} {{:jtag:reverse-gnd_internal-back.jpg?0x100|}}
  
-From the outside this looks very similar to the previous one, except that the connector pinout is very different (except for power).\\+From the outside this looks very similar to the previous one, except that the connector pinout is very different (except for power) and there is only one LED.\\
 No markings are on the board. No markings are on the board.
  
Line 132: Line 135:
 {{:jtag:st-link_v2_baite.svg?0x100|pinout}} {{:jtag:st-link_v2_baite.svg?0x100|pinout}}
  
-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.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" (under the crystal), 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 168:
 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 174:
 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 168: Line 183:
  
 First we need to re-program the Baite dongle.\\ First we need to re-program the Baite dongle.\\
-As you can see on the {{:jtag:baite_schematic.pdf|schematic}} the JTAG and SWD pins of the micro-controller are not connected (there even are no pads on the board for the pins to be soldered on).+As you can see on the {{:jtag:baite.pdf|schematic}} the JTAG and SWD pins of the micro-controller are not connected (there even are no pads on the board for the pins to be soldered on).
 But on the back of the board you can find test points so to program the device using the serial bootloader: But on the back of the board you can find test points so to program the device using the serial bootloader:
  
jtag.txt · Last modified: 2024/01/07 17:49 by 127.0.0.1