From: Øyvind H. <go...@us...> - 2010-01-19 11:14:00
|
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 924bf27596f31ab8e79fbb4de702be4a9fa12874 (commit) via c795b0d8f143a52e0b7196c6e353b381ac04f8ae (commit) via cdcb9b0885cdb2ca2a212536ab68acc2e9bc7fad (commit) from 5ab34b28ce3378a0a36b122a07af4f0f4769a24f (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 924bf27596f31ab8e79fbb4de702be4a9fa12874 Author: Ãyvind Harboe <oyv...@zy...> Date: Mon Jan 18 21:54:58 2010 +0100 zy1000: flush jtag buffer before changing speed It is conceivable that there could be commands in the queue when a speed change request comes in. Flush the hw queue before changing speed. Not observed, found by inspection. Signed-off-by: Ãyvind Harboe <oyv...@zy...> diff --git a/src/jtag/zy1000/zy1000.c b/src/jtag/zy1000/zy1000.c index 9070f2e..2c205b7 100644 --- a/src/jtag/zy1000/zy1000.c +++ b/src/jtag/zy1000/zy1000.c @@ -199,6 +199,9 @@ void zy1000_reset(int trst, int srst) int zy1000_speed(int speed) { + /* flush JTAG master FIFO before setting speed */ + waitIdle(); + if (speed == 0) { /*0 means RCLK*/ commit c795b0d8f143a52e0b7196c6e353b381ac04f8ae Author: Ãyvind Harboe <oyv...@zy...> Date: Tue Jan 19 09:46:49 2010 +0100 zy1000: print out PCB revision upon boot Simplify debugging a bit. Signed-off-by: Ãyvind Harboe <oyv...@zy...> diff --git a/src/ecosboard.c b/src/ecosboard.c index de2a42c..2e73585 100644 --- a/src/ecosboard.c +++ b/src/ecosboard.c @@ -956,7 +956,11 @@ int main(int argc, char *argv[]) diag_init_putc(_zylinjtag_diag_write_char); // We want this in the log. - diag_printf("Zylin ZY1000.\n"); +#ifdef CYGPKG_HAL_NIOS2 + diag_printf("Zylin ZY1000 PCB revc.\n"); +#else + diag_printf("Zylin ZY1000 PCB revb.\n"); +#endif err = mount("", "/ram", "ramfs"); if (err < 0) commit cdcb9b0885cdb2ca2a212536ab68acc2e9bc7fad Author: Ãyvind Harboe <oyv...@zy...> Date: Tue Jan 19 09:47:21 2010 +0100 flash: add error messages upon incorrect arguments to flash iteration According to OpenOCD error handling rules the error is logged at where it occurs(same site where an exception would have been thrown). Signed-off-by: Ãyvind Harboe <oyv...@zy...> diff --git a/src/flash/nor/core.c b/src/flash/nor/core.c index aedaa86..277da38 100644 --- a/src/flash/nor/core.c +++ b/src/flash/nor/core.c @@ -324,14 +324,20 @@ static int flash_iterate_address_range(struct target *target, { /* special case, erase whole bank when length is zero */ if (addr != c->base) + { + LOG_ERROR("Whole bank access must start at beginning of bank."); return ERROR_FLASH_DST_BREAKS_ALIGNMENT; + } return callback(c, 0, c->num_sectors - 1); } /* check whether it all fits in this bank */ if (addr + length - 1 > c->base + c->size - 1) + { + LOG_ERROR("Flash access does not fit into bank."); return ERROR_FLASH_DST_BREAKS_ALIGNMENT; + } /** @todo: handle erasures that cross into adjacent banks */ ----------------------------------------------------------------------- Summary of changes: src/ecosboard.c | 6 +++++- src/flash/nor/core.c | 6 ++++++ src/jtag/zy1000/zy1000.c | 3 +++ 3 files changed, 14 insertions(+), 1 deletions(-) hooks/post-receive -- Main OpenOCD repository |