1adapter speed 10000
2
3adapter driver ftdi
4ftdi_device_desc "Dual RS232-HS"
5ftdi_vid_pid 0x0403 0x6010
6
7ftdi_layout_init 0x0008 0x001b
8ftdi_layout_signal nSRST -oe 0x0020 -data 0x0020
9
10set _CHIPNAME riscv
11jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000913
12
13set _TARGETNAME $_CHIPNAME.cpu
14target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -rtos hwthread
15target create $_TARGETNAME.1 riscv -chain-position $_TARGETNAME -coreid 1
16target create $_TARGETNAME.2 riscv -chain-position $_TARGETNAME -coreid 2
17target create $_TARGETNAME.3 riscv -chain-position $_TARGETNAME -coreid 3
18target create $_TARGETNAME.4 riscv -chain-position $_TARGETNAME -coreid 4
19target smp $_TARGETNAME.0 $_TARGETNAME.1 $_TARGETNAME.2 $_TARGETNAME.3 $_TARGETNAME.4
20$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
21
22flash bank onboard_spi_flash0 fespi 0x20000000 0 0 0 $_TARGETNAME.0 0x10040000
23