File tree 2 files changed +35
-0
lines changed
2 files changed +35
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ adapter_khz 10000
2
+
3
+ interface ftdi
4
+ # ftdi_device_desc "Dual RS232-HS"
5
+ ftdi_device_desc " FT2232H-56Q MiniModule"
6
+ ftdi_vid_pid 0x0403 0x6010
7
+
8
+ ftdi_layout_init 0x0008 0x001b
9
+ ftdi_layout_signal nSRST -oe 0x0020 -data 0x0020
10
+
11
+ # Reset Stretcher logic on FE310 is ~1 second long
12
+ # This doesn't apply if you use
13
+ # ftdi_set_signal, but still good to document
14
+ # adapter_nsrst_delay 1500
15
+
16
+ set _CHIPNAME riscv
17
+ jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913
18
+
19
+ set _TARGETNAME $_CHIPNAME.cpu
20
+ target create $_TARGETNAME riscv -chain-position $_TARGETNAME
21
+ $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1
22
+
23
+ flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME
24
+ init
25
+ # reset -- This type of reset is not implemented yet
26
+ if {[ info exists pulse_srst]} {
27
+ ftdi_set_signal nSRST 0
28
+ ftdi_set_signal nSRST z
29
+ # Wait for the reset stretcher
30
+ # It will work without this, but
31
+ # will incur lots of delays for later commands.
32
+ sleep 1500
33
+ }
34
+ halt
35
+ # flash protect 0 64 last off
You can’t perform that action at this time.
0 commit comments