-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuspirate-flash.cfg
40 lines (30 loc) · 905 Bytes
/
buspirate-flash.cfg
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
#
# Buspirate with OpenOCD support
#
# http://dangerousprototypes.com/bus-pirate-manual/
#
# http://www.fabienm.eu/flf/15-ecp5-board-kit/
# https://github.com/Martoni/blp/tree/master/platforms/colorlight
# https://github.com/HarmonInstruments/JTAG_SWD
adapter driver buspirate
# you need to specify port on which BP lives
buspirate_port /dev/ttyUSB0
transport select jtag
# communication speed setting
buspirate_speed normal ;# or fast
# voltage regulator Enabled = 1 Disabled = 0
buspirate_vreg 0
# pin mode normal or open-drain (jtag only)
#buspirate_mode normal
# pullup state Enabled = 1 Disabled = 0
#buspirate_pullup 0
buspirate_mode open-drain
buspirate_pullup 1
buspirate_speed normal
jtag newtap ecp5 tap -irlen 8 -expected-id 0x41111043
init
scan_chain
svf -tap ecp5.tap -quiet -progress blink.svf
exit
# this depends on the cable, you are safe with this option
reset_config srst_only