Add HiFive1 target.
[riscv-tests.git] / debug / targets / HiFive1 / openocd.cfg
1 adapter_khz 10000
2
3 interface ftdi
4 ftdi_device_desc "Dual RS232-HS"
5 ftdi_vid_pid 0x0403 0x6010
6
7 ftdi_layout_init 0x0008 0x001b
8 ftdi_layout_signal nSRST -oe 0x0020
9
10 # ...
11
12 set _CHIPNAME riscv
13 jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913
14
15 set _TARGETNAME $_CHIPNAME.cpu
16 target create $_TARGETNAME riscv -chain-position $_TARGETNAME
17 $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 8096 -work-area-backup 1
18
19 flash bank my_first_flash fespi 0x20000000 0 0 0 $_TARGETNAME
20 init
21 #reset
22 halt
23 flash protect 0 64 last off