tinyriscv-openocd/tcl
Gary Carlson 8465e99442 reset: fix reset halt bug
I was finally able to figure out the cause of this problem.  There are two
parts to the patch.  The first patch modifies the configuration file I
originally generated for the Atmel AT91SAM9G20 board and achieves the
following:

+++ Splits the reset-init handler into a reset-start handler for some of the
initial configuration activities and keeps the remainder in the reset-init
handler as was the case before.  This was the real issue that was causing
the timing problems I identified before.  This solution was confirmed with
an o-scope on actual target hardware.

+++ Adds a new instruction in the reset-start handler to disable fast memory
accesses in the reset-start handler.  When the target jtag clock is started
out at 2 kHz during system clock initialization, memory writes (i.e.
register write to enable external reset pin -- basically to RSTC_MR) are
naturally slow and cause GDB keep-alive issues (refer to PATCH 2/2 for
additional fixes).

+++ Modifies the configuration file to use srst_only reset action. The
reset-start/reset-init handler split also now allows the correct behavior to
be used in the configuration file (previously had to use both SRST and TRST
even though only SRST is actually used and connected on the evaluation
board).

+++ Adds external NandFlash configuration support to take advantage of flash
driver added earlier.  Doesn't fix any bugs but adds functionality that was
marked as TBD before and thrown in when I did other work on the
configuration file.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2010-05-19 07:37:07 +02:00
..
board reset: fix reset halt bug 2010-05-19 07:37:07 +02:00
chip Remove annoying end-of-line whitespace from tcl/* files 2009-09-21 18:48:22 +00:00
cpld Xilinx xcr3256.cfg basic config script 2009-10-12 15:12:35 +02:00
cpu/arm Move TCL script files -- Step 2 of 2: 2009-05-27 06:49:24 +00:00
interface Add VPACLink interface definition 2010-04-26 07:08:52 +02:00
target at91rm9200 : reset_config should go to the board config file 2010-05-18 11:48:47 +02:00
test rename jtag_nsrst_delay as adapter_nsrst_delay 2010-03-15 08:41:30 -07:00
bitsbytes.tcl Remove annoying end-of-line whitespace from tcl/* files 2009-09-21 18:48:22 +00:00
memory.tcl Remove annoying end-of-line whitespace from tcl/* files 2009-09-21 18:48:22 +00:00
mmr_helpers.tcl Remove annoying end-of-line whitespace from tcl/* files 2009-09-21 18:48:22 +00:00
readable.tcl Remove annoying end-of-line whitespace from tcl/* files 2009-09-21 18:48:22 +00:00