]> git.sur5r.net Git - openocd/blobdiff - src/flash/nor/pic32mx.c
Patch: Make pic32mx unlock work at higher scan frequencies
[openocd] / src / flash / nor / pic32mx.c
index 788a3b919346d9a828c4361be23aef3f6bab19d6..b718c98ffddbce613f934853940b76fa94783fc4 100644 (file)
@@ -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);