JTAG

hi i have a simple question i am using a LPC2138 to use the JTAG cable do u i have to change the values PINSEL2

No, you don’t. You need to make sure that RTCK is low during reset.

This is probably mentioned in the LPC213x user manual.