52 lines
1.5 KiB
INI
52 lines
1.5 KiB
INI
# Copyright (C) 2018 Synopsys, Inc.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License along
|
|
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
# Synopsys DesignWare ARC IoT Development Kit
|
|
#
|
|
|
|
# Configure JTAG cable
|
|
# IoT DK has built-in FT2232 chip, which is similar to Digilent HS-1.
|
|
interface ftdi
|
|
ftdi_vid_pid 0x0403 0x6010
|
|
ftdi_layout_init 0x0088 0x008b
|
|
ftdi_channel 1
|
|
|
|
|
|
# EM9D requires 8 MHz.
|
|
adapter_khz 8000
|
|
|
|
# ARCs support only JTAG.
|
|
transport select jtag
|
|
|
|
source [find cpu/arc/em.tcl]
|
|
|
|
set _CHIPNAME arc-em
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
|
|
|
# IOTDK IDENTITY is 0x200444b1
|
|
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -expected-id 0x200444b1
|
|
|
|
set _coreid 0
|
|
set _dbgbase [expr 0x00000000 | ($_coreid << 13)]
|
|
|
|
target create $_TARGETNAME arcv2 -chain-position $_TARGETNAME \
|
|
-coreid 0 -dbgbase $_dbgbase -endian little
|
|
|
|
# There is no SRST, so do a software reset
|
|
$_TARGETNAME configure -event reset-assert "arc_em_reset $_TARGETNAME"
|
|
|
|
arc_em_init_regs |