Thanks for testing @WiFive. This means my code could have problems.I have tested a simple example and it does work as long as you use the function calls I posted.
May I ask you to provide the source code of your test example (and sdkconfig file if possible)? Did you setup the CONFIG_CONSOLE_UART_COSTUM like I originally posted?
I forgot to mention I'm on esp-idf v3.2.2 but I didn't tested on master branch.
Thanks again and regards