-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.arm.txt
61 lines (44 loc) · 1.52 KB
/
README.arm.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
DTV2ser ARM port
================
By James Churchill <[email protected]> 5.12.2018
Intro
=====
As the AVR based boards in my collection didn't work well with DTV2ser - it
doesn't like the CH340 usb-serial chip - I decided to port it over to the cheap
ARM-based Blue Pill ($2 on ebay!) that does all the USB inside the ARM chip.
It's cheap, it's powerful, it's simple!
Initial programming can be done with an equally cheap ST-Link clone from ebay,
or a basic USB-serial cable.
Hardware needed
===============
STM32 Blue Pill (search for "STM32F103 minimum board" on ebay)
USB-Serial cable
(or any STM32 programmer if you have it, like a ST-Link, Discovery board,
J-Link or Black Magic Probe)
Wiring pinout
=============
The default pinout uses the 5 pins closest to the USB socket, on the side that
doesn't start with ground.
ARM Direction DB9
----+-----------+----
B12 Up 1
B13 Down 2
B14 Left 3
B15 Right 4
A8 Fire 6
A9 Reset 9
G Ground 6
There's an incorrect resistor on the bluepill that prevents proper USB resets
(you will need to physically disconnect/reconnect the USB plug to re-enumerate.)
Replacing R10 on the back of the board with a 1.5k will fix this.
Building
========
Install arm-none-eabi-gcc
cd arm
make
Flash build/dtv2ser-arm.hex to the bluepill
Flashing
========
TODO: There are instructions online for flashing a bootloader on the blue pill,
just use the dtv2ser-arm.hex file instead. Presently flashing via the bluepill
USB port is not supported.