From: David B. <dbr...@us...> - 2009-10-29 23:39:47
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via a53c72cdab7ea14e4aa0526270febf15a7248759 (commit) via 517049dca50fa2af965b2ba9db43d50e65400c3f (commit) from 0c4d5b8b1f8da402a1de675ad4c2d479edf372b8 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit a53c72cdab7ea14e4aa0526270febf15a7248759 Author: Michael Roth <mr...@ne...> Date: Thu Oct 29 14:24:28 2009 +0100 SVF: fix checking bit pattern against length The code works like follow (N = bit_len): N -1 %4 2<< -1 ~ (binary) -------------------------------------------------- 1 0 0 2 1 1111 1110 2 1 1 4 3 1111 1100 3 2 2 8 7 1111 1000 4 3 3 16 15 1111 0000 5 4 0 2 1 1111 1110 6 5 1 4 3 1111 1100 7 6 2 8 7 1111 1000 8 7 3 16 15 1111 0000 ... ... ... ... ... ... Addresses a bug reported by FangfangLi <ff...@sy...>. [dbr...@us...: fix spelling bug too] Signed-off-by: Michael Roth <mr...@ne...> Cc: FangfangLi <ff...@sy...> Signed-off-by: David Brownell <dbr...@us...> diff --git a/src/svf/svf.c b/src/svf/svf.c index 276a374..9c597bf 100644 --- a/src/svf/svf.c +++ b/src/svf/svf.c @@ -685,9 +685,9 @@ static int svf_copy_hexstring_to_binary(char *str, uint8_t **bin, int orig_bit_l str_len--; // check valid - if (str_len > 0 || (ch & ~((1 << (4 - (bit_len % 4))) - 1)) != 0) + if (str_len > 0 || (ch & ~((2 << ((bit_len - 1) % 4)) - 1)) != 0) { - LOG_ERROR("value execede length"); + LOG_ERROR("value execeeds length"); return ERROR_FAIL; } commit 517049dca50fa2af965b2ba9db43d50e65400c3f Author: Dimitar Dimitrov <di...@gm...> Date: Thu Oct 29 15:39:03 2009 -0700 Olimex FT2232H JTAG adapters Add interface configs for two new high speed JTAG adapters from Olimex. They need some other speed related tweaks to work well at high speed. Signed-off-by: David Brownell <dbr...@us...> diff --git a/tcl/interface/olimex-arm-usb-ocd-h.cfg b/tcl/interface/olimex-arm-usb-ocd-h.cfg new file mode 100644 index 0000000..47daa92 --- /dev/null +++ b/tcl/interface/olimex-arm-usb-ocd-h.cfg @@ -0,0 +1,11 @@ +# +# Olimex ARM-USB-OCD-H +# +# http://www.olimex.com/dev/arm-usb-ocd.html +# + +interface ft2232 +ft2232_device_desc "Olimex OpenOCD JTAG ARM-USB-OCD-H" +ft2232_layout olimex-jtag +ft2232_vid_pid 0x15ba 0x002b + diff --git a/tcl/interface/olimex-arm-usb-tiny-h.cfg b/tcl/interface/olimex-arm-usb-tiny-h.cfg new file mode 100644 index 0000000..b6aa952 --- /dev/null +++ b/tcl/interface/olimex-arm-usb-tiny-h.cfg @@ -0,0 +1,11 @@ +# +# Olimex ARM-USB-TINY-H +# +# http://www.olimex.com/dev/arm-usb-tiny-h.html +# + +interface ft2232 +ft2232_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" +ft2232_layout olimex-jtag +ft2232_vid_pid 0x15ba 0x002a + ----------------------------------------------------------------------- Summary of changes: src/svf/svf.c | 4 ++-- tcl/interface/olimex-arm-usb-ocd-h.cfg | 11 +++++++++++ tcl/interface/olimex-arm-usb-tiny-h.cfg | 11 +++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 tcl/interface/olimex-arm-usb-ocd-h.cfg create mode 100644 tcl/interface/olimex-arm-usb-tiny-h.cfg hooks/post-receive -- Main OpenOCD repository |