Content originally posted in LPCWare by DF9DQ on Thu Jan 08 15:48:07 MST 2015
0x01000012 is the very value that got it working for me.
This is what I did:
[list]
[*]SYSRESET the device, and let it run through the boot code up to the reset vector of the application in flash. That is, no instruction of my application code has been run yet, and the device is supposed to be in a pristine state with no side effect of any debugger script.
[*]Use the debugger to power up the PLL0_USB, and enable its output (PD=0, CLKEN=1).
[*]It's only now that I open a memory view containing the registers CLK_USB0_CFG etc. If I had opened that memory view before enabling the PLL, it would indeed have crashed the debugger just as you described.
[/list]
I have not double-checked that the CPU now also has access to the registers in question, but I have no good reason to doubt that.