-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathf232h-gd32v.cfg
41 lines (30 loc) · 1.18 KB
/
f232h-gd32v.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
41
#
adapter driver ftdi
# C232HM-DDHSL-0
# F232H
ftdi vid_pid 0x0403 0x6014
#
ftdi channel 0
# ftdi_layout_init 0x0038 0x003b
# just TCK TDI TDO TMS, no reset
# ftdi layout_init 0x0008 0x000b
# reset_config none
# just TCK TDI TDO TMS nRST
ftdi layout_init 0x0018 0x001b
ftdi layout_signal nSRST -data 0x0010 -oe 0x0010
transport select jtag
# [KHz]
adapter speed 200
# (mfg: 0x31e (Andes Technology Corporation), part: 0x0005, ver: 0x1)
# jtag newtap auto0 tap -irlen 5 -expected-id 0x1000563d
jtag newtap riscv cpu -irlen 5 -expected-id 0x1000563d
# (mfg: 0x3d1 (GigaDevice Semiconductor (Beijing) Inc), part: 0x9000, ver: 0x7)
# jtag newtap auto1 tap -irlen 5 -expected-id 0x790007a3
jtag newtap gd32v tap -irlen 5 -expected-id 0x790007a3
target create riscv.cpu riscv -chain-position riscv.cpu
riscv.cpu configure -work-area-phys 0x20000000 -work-area-size 10000 -work-area-backup 1
riscv.cpu riscv set_reset_timeout_sec 1
if {[catch {flash bank riscv.flash stm32f1x 0x08000000 0 0 0 riscv.cpu}] != 0} {
echo "** Maybe flash driver for stm32f1x is not implemented in this version of OpenOCD **"
echo "** You may still be able to debug target application already in the flash memory. **"
}