From a6b0fc287e5e477f4e40d6c2d21214714499d449 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 11 Aug 2010 04:27:18 +0000 Subject: [PATCH] ice100b: add version check & firmware upgrade info (Chad Wentworth) git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1822 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 7 ++++++- urjtag/src/tap/cable/ice100.c | 9 +++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index ef22c2bf..55cad162 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,6 +1,11 @@ +2010-08-11 Mike Frysinger + + * src/tap/cable/ice100.c: Add version check and firmware upgrade information + for ICE-100B cables (Chad Wentworth). + 2010-08-08 Arnim Laeuger - * src/tap/cable/generic.c: fix TDO handling ingeneric_flush_using_transfer() + * src/tap/cable/generic.c: fix TDO handling in generic_flush_using_transfer() (Matthias Drochner) 2010-08-07 Mike Frysinger diff --git a/urjtag/src/tap/cable/ice100.c b/urjtag/src/tap/cable/ice100.c index 8e8c8b6a..862d1081 100644 --- a/urjtag/src/tap/cable/ice100.c +++ b/urjtag/src/tap/cable/ice100.c @@ -498,6 +498,15 @@ static int ice_init (urj_cable_t *cable) ((cable_params->version >> 4) & 0x0F), ((cable_params->version) & 0x0F)); + if (cable_params->version < 0x0107) + { + urj_log (URJ_LOG_LEVEL_ERROR, + _("The firmware on the ICE-100b needs to be upgraded. Please go to:\n" + "%sto learn how to update the firmware.\n"), + "http://docs.blackfin.uclinux.org/doku.php?id=hw:jtag:ice100b\n"); + return URJ_STATUS_FAIL; + } + /* Set frequency to lowest value */ ice100b_set_freq (cable, avail_freqs[0]); cable_params->sel_rawscan_enabled = (cable_params->version < 0x0107) ? 0 : 1;