tcl/interface: add example of linuxgpiod through dln-2
[fw/openocd] / tcl / target / pic32mx.cfg
index 8a8eea0ebc54660873a3fe8d021b0656f3d71974..51a6bbddb21a6c8aecf741253ccad4c85e5c1867 100644 (file)
@@ -23,7 +23,7 @@ if { [info exists WORKAREASIZE] } {
    set _WORKAREASIZE 0x4000
 }
 
-adapter_nsrst_delay 100
+adapter srst delay 100
 jtag_ntrst_delay 100
 
 #jtag scan chain
@@ -50,12 +50,11 @@ $_TARGETNAME configure -event reset-init {
        # from reset the pic32 cannot execute code in ram - enable ram execution
        # minimum offset from start of ram is 2k
        #
-
        global _PIC32MX_DATASIZE
        global _WORKAREASIZE
 
-       # BMXCON
-       mww 0xbf882000 0x001f0040
+       # BMXCON        set 0 wait state option by clearing BMXWSDRM bit, bit 6
+       mww 0xbf882000 0x001f0000
        # BMXDKPBA: 2k kernel data @ 0xa0000000
        mww 0xbf882010 $_PIC32MX_DATASIZE
        # BMXDUDBA: 14k kernel program @ 0xa0000800 - (BMXDUDBA - BMXDKPBA)