diff options
author | Gary Carlson <gcarlson@carlson-minot.com> | 2010-05-18 20:59:07 -0700 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-05-19 07:37:07 +0200 |
commit | 8465e9944291a03a216fa15e0d7ed6eb9d44ba92 (patch) | |
tree | 47ddedef0642fc8b24482019016a6fe21f1b2364 /src/flash/nand/arm_io.h | |
parent | b80d0501b66002cba1b3bc97a027d4f79932f20d (diff) | |
download | openocd_libswd-8465e9944291a03a216fa15e0d7ed6eb9d44ba92.tar.gz openocd_libswd-8465e9944291a03a216fa15e0d7ed6eb9d44ba92.tar.bz2 openocd_libswd-8465e9944291a03a216fa15e0d7ed6eb9d44ba92.tar.xz openocd_libswd-8465e9944291a03a216fa15e0d7ed6eb9d44ba92.zip |
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>
Diffstat (limited to 'src/flash/nand/arm_io.h')
0 files changed, 0 insertions, 0 deletions