#Disable Watchdog
mww 0x10002000 0x0000
#init PLL
mww 0x10027000 0x1F18060F
mww 0x10027004 0x007B1C73
mww 0x10027000 0x1F38060F
#init SDRAM
mww 0x10000000 0x00040304
mww 0x10020000 0x00000000
mww 0x10000004 0xFFFBFCFB
mww 0x10020004 0xFFFFFFFF
mww 0xDF000000 0x8212c339
mww 0xC0200000 0x00000000
mww 0xDF000000 0xA212c339
mww 0xC0000000 0x00000000
mww 0xC0000000 0x00000000
mww 0xC0000000 0x00000000
mww 0xC0000000 0x00000000
mww 0xC0000000 0x00000000
mww 0xC0000000 0x00000000
mww 0xC0000000 0x00000000
mww 0xC0000000 0x00000000
mww 0xDF000000 0xB212c339
mww 0xC0119800 0x00000000
mww 0xDF000000 0x8212C339
#init I cache
arm926ejs cp15 0 0 1 0 0x51078
arm926ejs cp15 0 0 7 5 0
#arm7_9 fast_memory_access enable
#arm7_9 force_hw_bkpts enable # program resides in flash
arm7_9 dcc_downloads enable
If i doo all the rest and then have the MPLL in the end still i get the OpenOCD to disconnect from the processor.