Skip to content

Commit

Permalink
tcl: change nuclei-demosoc.cfg to nuclei-evalsoc.cfg
Browse files Browse the repository at this point in the history
Change-Id: I3d5cb3f25d9097e290fd829becd15ae17895c46d
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Oct 27, 2023
1 parent 99bb50b commit 6e1aa07
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 53 deletions.
53 changes: 0 additions & 53 deletions tcl/board/nuclei-demosoc.cfg

This file was deleted.

48 changes: 48 additions & 0 deletions tcl/board/nuclei-evalsoc.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
adapter speed 1000

adapter driver ftdi
ftdi vid_pid 0x0403 0x6010
# change to on to enable cJTAG 2-wire OSCAN1 protocol
# ocan1_mode -> nscan1_mode in 2023.10 Nuclei OpenOCD release
# ftdi oscan1_mode off
ftdi nscan1_mode off

## bindto 0.0.0.0 can be used to cover all available interfaces.
## Uncomment bindto line to enable remote machine debug
# bindto 0.0.0.0

# specify adapter serial to select a ftdi chip if you have multiple jtag devices
# adapter serial "FT6S9RD6"

transport select jtag

ftdi layout_init 0x0008 0x001b
ftdi layout_signal nSRST -oe 0x0020 -data 0x0020
ftdi layout_signal TCK -data 0x0001
ftdi layout_signal TDI -data 0x0002
ftdi layout_signal TDO -input 0x0004
ftdi layout_signal TMS -data 0x0008
ftdi layout_signal JTAG_SEL -data 0x0100 -oe 0x0100


set _CHIPNAME riscv
jtag newtap $_CHIPNAME cpu -irlen 5

set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME riscv -chain-position $_TARGETNAME
$_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1

set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME nuspi 0x20000000 0 0 0 $_TARGETNAME

init

if {[ info exists pulse_srst]} {
ftdi_set_signal nSRST 0
ftdi_set_signal nSRST z
}
halt

# We must turn on this because otherwise the IDE version debug cannot download the program into flash

flash protect 0 0 last off

0 comments on commit 6e1aa07

Please sign in to comment.