From 8d0ede085925c6516717532a9421e8199ff1f816 Mon Sep 17 00:00:00 2001 From: Etienne Wodey Date: Fri, 20 Dec 2019 15:08:15 +0100 Subject: [PATCH] flash_xc3: remove fxload call, pass cable type as argument --- flash_xc3.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/flash_xc3.sh b/flash_xc3.sh index d5cf31d..c7448e1 100755 --- a/flash_xc3.sh +++ b/flash_xc3.sh @@ -1,8 +1,9 @@ #!/bin/bash set -e -set -x -/sbin/fxload -t fx2 -I /opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64/xusb_xp2.hex -D /dev/bus/usb/001/*`cat /sys/bus/usb/devices/1-7.1/devnum` -sleep 7 -../xc3sprog/build/xc3sprog -c xpc -m /opt/Xilinx/14.7/ISE_DS/ISE/xbr/data -v build/urukul.jed:w +XC3SPROG=xc3sprog +CABLE=${1-xpc} + +set -x +$XC3SPROG -c $CABLE -m /opt/Xilinx/14.7/ISE_DS/ISE/xbr/data -v build/urukul.jed:w