Thanks, but my question is not general in nature.
How to understand what you said "my question is not general in nature"?
Which PSoC 6 device is it?
What board are you using?
What voltage is applied to VDDD (supply for Port 1)?
Which IDE/Toolchain are you using?
From Debugging point of view, I would check if the Port settings are correct within the registers. The addresses to check can be found in the device register TRM.
If this is a software related issue, you could try to find the error cause by using a watchpoint, to see if there is any modifycation done to that pin.
Here is the init for the Watch Point in software, just put into main. When you are in debugging mode this will trigger a breakpoint whenever the test address (bold) is written to. Depending on the IDE used there might be easier ways to do this, like right-click the variable and click "Add Watchpoint" (not add to watch!). 0x40320080UL is the address of PORT1 OUT register.
CoreDebug->DEMCR = CoreDebug_DEMCR_TRCENA_Msk | /*enable tracing*/
CoreDebug_DEMCR_MON_EN_Msk; /*enable debug interrupt*/
DWT->COMP0 = (int)0x40320080UL; /* set pointer to test Variable */
DWT->MASK0 = 0; /* N/A */
DWT->FUNCTION0 = (0b0110 << 0); /* generate a watchpoint event on write */