1# Configure JTAG cable
2# EM Starter Kit has built-in FT2232 chip, which is similar to Digilent HS-1.
3adapter driver ftdi
4ftdi vid_pid 0x0403 0x6010
5# channel 1 does not have any functionality
6ftdi channel 0
7# just TCK TDI TDO TMS, no reset
8ftdi layout_init 0x0088 0x008b
9reset_config none
10
11# Only specify FTDI serial number if it is specified via
12# "set _ZEPHYR_BOARD_SERIAL 12345" before reading this script
13if { [info exists _ZEPHYR_BOARD_SERIAL] } {
14       ftdi_serial $_ZEPHYR_BOARD_SERIAL
15}
16
17# EM11D reportedly requires 5 MHz. Other cores and board can work faster.
18adapter speed 5000
19
20# ARCs support only JTAG.
21transport select jtag
22
23# Configure FPGA. This script supports both LX45 and LX150.
24source [find target/snps_em_sk_fpga.cfg]
25