Content originally posted in LPCWare by larryvc on Sat Dec 13 13:58:17 MST 2014
You should not have to do anything regarding the SWM as GPIO function PIO0_1 is the default. What board are you using for testing the LPC812?
I have verified the same results while using the LPC812 on the Labtool. For testing I commented out all of the SWM code. I was able to confirm that the code works fine on PIO0_4 but not on PIO0_1. PIO0_1 terminates at J15 pin 1 on the Labtool with no other connections noted.
I am a bit stumped here as well. Sorry I couldn't be of more help.
Let's see if anyone else has any ideas.