On 01/04/2011 9.00, Øyvind Harboe wrote:
On Fri, Apr 1, 2011 at 9:01 AM, luca ellero<lro...@gmail.com>  wrote:
On 31/03/2011 19.02, Øyvind Harboe wrote:

Do we delete the dbgbase patchup code now that we
have automatic detection default with manual override?


..ehm, sorry, I think I've miss something here: if you remove dbgbase code,
how can be made manual override?

The dbgbase patchup code is the code that runs *after* autodetection
that tries to correct the detected dbgbase.




Yes. I think the code you are referring to is this:

-       /* Get ROM Table base */
-       retval = dap_get_debugbase(swjdp, 1, &dbgbase, &apid);
-       if (retval != ERROR_OK)
-               return retval;
+       if (!target->dbgbase_set)
+       {
+               /* Get ROM Table base */
+               uint32_t apid;
+               retval = dap_get_debugbase(swjdp, 1, &dbgbase, &apid);
+               if (retval != ERROR_OK)
+                       return retval;
+       } else
+       {
+               dbgbase = target->dbgbase;
+       }


I think this code is very useful for broken CPUs with wrong debug base (eg OMAP4430). My question is: if you remove this code what is the suggested mode to set the debug base on this broken CPUs?
Thanks


_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to