SysCtlSleep merely executes a wfi instruction. If the wfi takes an interrupt immediately, all is fine (usually the case if you put a breakpoint fairly close in time before it and are running a 1mS timer). However, if I have no such breakpoint set, I end up at the reset handler. Running without the debugger is fine.

This is with the new debug dll.

Is this expected behavior?

It's easy enough to work around of course - comment out the SysCtlSleep() call and all is fine under the debugger.

BTW: SysCtlPeripheralClockGating(true) has not been called.

Orin.