jtag
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
jtag [2017/03/30 15:46] – add BMP kingkevin | jtag [2017/04/06 08:08] – [Black Magic Probe] add patch kingkevin | ||
---|---|---|---|
Line 125: | Line 125: | ||
{{: | {{: | ||
- | The [[https://www.aliexpress.com/ | + | The [[http://betemcu.cn/|Baite]] [[https:// |
The seem to use the same board also for several other programmers, | The seem to use the same board also for several other programmers, | ||
Line 155: | Line 155: | ||
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 |
<code bash> | <code bash> | ||
git clone https:// | git clone https:// | ||
Line 161: | Line 161: | ||
git submodule init | git submodule init | ||
git submodule update | git submodule update | ||
+ | wget -O 0001-add-new-platform-Baite-ST-Link-V2-clone.patch " | ||
+ | patch -p1 < 0001-add-new-platform-Baite-ST-Link-V2-clone.patch | ||
make | make | ||
cd src | cd src | ||
Line 213: | Line 215: | ||
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" |
^ signal ^ pin ^ pin ^ signal ^ | ^ signal ^ pin ^ pin ^ signal ^ | ||
| SRST | 1 | 2| +3.3V | | | SRST | 1 | 2| +3.3V | | ||
Line 220: | Line 222: | ||
| GND | 7 | 8 | JTDO/ | | GND | 7 | 8 | JTDO/ | ||
| 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