On Thu, May 14, 2009 at 11:56 PM, Paul Thomas <pthomas8...@gmail.com> wrote:
> Hello,
>
> I'm trying to use the load_image command, and it keeps giving me an error. I
> know the command syntax is correct because this works on a different imx27
> board. I would think it's just my SDRAM initilization except that I can
> read/write to the memory with mww and mdw. You can see the full output
> (debug = 3) here (http://pastebin.com/m69f2aae3). I'm trying to load a 16.9k
> redboot image. I just updated SVN to 1787. I'm using the Signalyzer for
> Xverve and the cfg file I just sent to the list.

This is an old problem I've seen with arm926ejs before.
You could try to tinker with the interpretation of this value in:

int arm926ejs_examine_debug_reason(target_t *target)

You can read up on arm926ejs documentation, but chances
are that these values are undocumented....

Example of such tinkering in attached patch....

-- 
Øyvind Harboe
Embedded software and hardware consulting services
http://consulting.zylin.com
Index: C:/workspace/openocd/src/target/arm926ejs.c
===================================================================
--- C:/workspace/openocd/src/target/arm926ejs.c (revision 1786)
+++ C:/workspace/openocd/src/target/arm926ejs.c (working copy)
@@ -325,7 +325,7 @@
                        target->debug_reason = DBG_REASON_DBGRQ;
                        /* if we fail here, we won't talk to the target and it 
will
                         * be reported to be in the halted state */
-                       retval = ERROR_TARGET_FAILURE;
+                       retval = ERROR_OK;
                        break;
        }
 
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to