From 538399cb3bf94ed0ec9575cda9964947ee3da837 Mon Sep 17 00:00:00 2001 From: Josuah Demangeon Date: Mon, 31 Jul 2023 14:05:34 +0200 Subject: [PATCH] lattice_ecp5_evn: update OpenOCD syntax When running `litex_server`, this error appeared: can't read "_CHIPNAME": no such variable This is a fix for the specific lattice_ecp5_evn board. It also refreshes the OpenOCD syntax. --- litex_boards/prog/openocd_evn_ecp5.cfg | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/litex_boards/prog/openocd_evn_ecp5.cfg b/litex_boards/prog/openocd_evn_ecp5.cfg index 21e9bb4..1278357 100644 --- a/litex_boards/prog/openocd_evn_ecp5.cfg +++ b/litex_boards/prog/openocd_evn_ecp5.cfg @@ -1,9 +1,10 @@ -interface ftdi -ftdi_vid_pid 0x0403 0x6010 -ftdi_channel 0 -ftdi_layout_init 0xfff8 0xfffb +adapter driver ftdi +adapter speed 25000 +transport select jtag +ftdi vid_pid 0x0403 0x6010 +ftdi channel 0 +ftdi layout_init 0x00e8 0x60eb reset_config none -adapter_khz 5000 - -jtag newtap ecp5 tap -irlen 8 -expected-id 0x81113043 +set _CHIPNAME ecp5 +jtag newtap $_CHIPNAME tap -irlen 8 -expected-id 0x81113043