ETM / IO pins behaving funny on the LPC2119 ....

Hi all, I’m a newbie to arm programming. I recently got Olimex’s USB-Tiny OCD debugger and the LPC2119 board from futurlec. I managed to successfully program the chip with the bootloader. However after i got olimex’s USB-tiny OCD debugger i attempted to give that a try. I haven’t managed to successfully download to flash via OCD yet, however i did manage to get the debugger to successfully operate…to some degree.

After a few hours of playing around with the debugger however, i discovered that some IO pins where not responsive. specifically they are PINS P1.23 -P1.16.

Infact I’m finding now that some of those pins are only responsive when the debugger is attached but totally ‘dead’ when its removed. I realize that these are ETM IOs and have attempted to clear bit 3 in the PINSEL2 register to allow these pins to be used for GPIO and not for ETM (page 129 LPC2119 user manual) but to no avail. I also attempteed to connect pin P1.20/tracesync to a high value and then reset the chip(page 291 in LPC2119 user manual). But that didn’t work either.

All the other pins seem to work fine. Any feedback is greatly appreciated

cheers!

Hussam