This is an automated email from Gerrit.

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

-- gerrit

commit 70b553c2ba3b30d49f08f6cebdf9cc1725a74af0
Author: Salvador Arroyo <[email protected]>
Date:   Wed Aug 22 20:34:02 2012 +0200

    Patch: Make pic32mx unlock work at higher scan frequencies
    
    For example in a pic32mx220, pic32mx unlock don't work
    if adapter_khz is set to 5000 or more.
    
    A short delay after asserting reset fix the problem.
    
    Change-Id: I62e493edfcea585c36c8de77a969cebac7227b96
    Signed-off-by: Salvador Arroyo <[email protected]>

diff --git a/src/flash/nor/pic32mx.c b/src/flash/nor/pic32mx.c
index 788a3b9..b718c98 100644
--- a/src/flash/nor/pic32mx.c
+++ b/src/flash/nor/pic32mx.c
@@ -28,6 +28,7 @@
 #include "config.h"
 #endif
 
+#include <jtag/jtag.h>
 #include "imp.h"
 #include <target/algorithm.h>
 #include <target/mips32.h>
@@ -828,6 +829,7 @@ COMMAND_HANDLER(pic32mx_handle_unlock_command)
 
        /* unlock/erase device */
        mips_ejtag_drscan_8_out(ejtag_info, MCHP_ASERT_RST);
+       jtag_add_sleep(200);
 
        mips_ejtag_drscan_8_out(ejtag_info, MCHP_ERASE);
 

-- 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to