Content originally posted in LPCWare by starblue on Wed Jul 01 01:04:03 MST 2015
Quote: jdupre
Anyone know what the IF_DETECT wire is for on debug header P1?
This is usually called GndDetect, you can use it to detect the presence of a debugger.
On the debugger it should be connected to ground.
So if you remove R5 and enable pull-up on P2[13] you should be able to detect whether a debugger is present.
Note that I haven't tried this. I'm also not sure how this is used. Maybe when debugging you want to block certain functions for safety reasons, say if the LPC15xx is controlling a big motor.