Yes, it is feasible. Please refer to attached demo code, which demonstrates how to modify UART rx/tx pins to general GPIO for wake up from DSM, and then configure it back for UART functionality.
Thanks for your reply!
I am trying to porting your demo code to my application, but failed.
P9 is configured as GPIO. PSoC6 can be woken up from deep sleep.
Then I changed P9 to UART Rx, but PSoC6 cannot receive from the board.
P9 is configured as GPIO. It can wake up the board.
Then I changed P9 to UART Tx, but PSoC6 cannot transmit correctly, namely, the board got messy code.
I am still trying to achieve the goal.
Any progress over porting the code to your project?
I do not achieve the goal.
At present we have to make PSoC6 in sleep instead of deep sleep.
Wish PSoC6 should be in deep sleep earlier!