I miss the function
CLOCK_DisableClock(kCLOCK_Iocon)
at the end of pin_mux.c generated with the Pins tool (actual SDK for LPC845-BRK).
Clocks for Iocon, Swm and Gpio0 are enabled at the beginning.
At the end Gpio0 remains enabled (of course) and Swm ist disabled. Even UM says:
