This is an automated email from Gerrit.

Spencer Oliver ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/1103

-- gerrit

commit 108b5af19bcce893887c145eff629675cf128944
Author: Spencer Oliver <[email protected]>
Date:   Wed Jan 2 17:25:51 2013 +0000

    hla: support setting DCB_DEMCR on resume
    
    This is only minimal support to enable use to catch a Hard Fault in
    the stm32l flash bootloader.
    
    Change-Id: I21d6a11893e2f1d173ebff1a651d6f52bf6eec32
    Signed-off-by: Spencer Oliver <[email protected]>

diff --git a/src/target/hla_target.c b/src/target/hla_target.c
index 8d2a429..6bd286a 100644
--- a/src/target/hla_target.c
+++ b/src/target/hla_target.c
@@ -571,6 +571,11 @@ static int adapter_resume(struct target *target, int 
current,
 
        resume_pc = buf_get_u32(pc->value, 0, 32);
 
+       /* write any user vector flags */
+       res = target_write_u32(target, DCB_DEMCR, armv7m->demcr);
+       if (res != ERROR_OK)
+               return res;
+
        armv7m_restore_context(target);
 
        /* registers are now invalid */

-- 

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to