HI Avinash
From the article I recommended, "SWO Trace is supported by LPCXpresso IDE for all NXP LPC MCUs based on Cortex-M3/M4 cpus, including LPC1300, LPC1500, LPC1700, LPC1800, LPC407x_8x, LPC4300 (M4 only) and LPC5410x."
But "instruction trace is not supported with LPC17xx MCUs (which do not implement an ETB)"
ETB hardware is not implemented in LPC17xx. The ETB (when implemented) directs the trace stream to on-chip SRAM, which can then be read out (typically via a debugger) and decoded.
The LPC17xx does generate a trace stream, and this is directed to the trace pins on the chip. You then need specialist hardware (such a Segger JTrace) to capture this stream and then decode it. The trace stream is generated at the same frequency as the CPU core.
For the usage of Keil, as it is not NXP product, please consult MDK.
Thanks,
Jun Zhang