tcl/board: add SPDX tag
[fw/openocd] / tcl / board / sifive-hifive1-revb.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 adapter speed 4000
4
5 adapter driver jlink
6 transport select jtag
7
8 set _CHIPNAME riscv
9 jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000913
10
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
14
15 flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME.0
16
17 init
18
19 jlink jtag 3
20
21 halt
22 flash protect 0 1 last off
23 echo "Ready for Remote Connections"