board: Add the HiFive1 revB board configuration
[fw/openocd] / tcl / board / sifive-hifive1-revb.cfg
1 adapter speed 4000
2
3 adapter driver jlink
4 transport select jtag
5
6 set _CHIPNAME riscv
7 jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000913
8
9 set _TARGETNAME $_CHIPNAME.cpu
10 target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME
11 $_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 0
12
13 flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME.0
14
15 init
16
17 jlink jtag 3
18
19 halt
20 flash protect 0 1 last off
21 echo "Ready for Remote Connections"