checkpatch: adapt shell script to the tool's new version
[openocd.git] / tcl / board / sifive-hifive1-revb.cfg
blobe5fe104ac8aae4a6d9469bcd29cb7b4713fefcd2
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 adapter speed 4000
5 adapter driver jlink
6 transport select jtag
8 set _CHIPNAME riscv
9 jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000913
11 set _TARGETNAME $_CHIPNAME.cpu
12 target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME
13 $_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 0
15 flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME.0
17 init
19 jlink jtag 3
21 halt
22 flash protect 0 1 last off
23 echo "Ready for Remote Connections"