On LPC15xx devices you can configure I/O pin to use for a SWO trace with a custom initialization script.
Environment will remap the selected pin to output SWO trace, disabling any function previously assigned by the application.
1. Add the custom script LPC15xx_TraceInit.cpp to Hardware | CPU Options | Analyzer | SoC Initialization.
2. Specify which port to use for parallel trace and select a pin that is not otherwise used by the application. The default settings are: