When TCPWM is assigned to GPIO, a MUX is used to select this TCPWM function. To select GPIO function, the MUX needs to be changed to point to GPIO.
See this thread where GPIO and SPI were used. This will be similar solution to TCPWM and GPIO for your project.
Solved: Re: PSOC 4 SPI SBC mode cannot toggle output pins - Infineon Developer Community
You will need to find the Technical Reference Manual for your PSoC. The link above is for 4200 family with UDB blocks. If your device has Smart/IO, then there may be something similar for solution.