You can chat about native SDK questions and issues here.

User avatar
By hxy513696765
#66676 //====My code=======
//switch to swap UART0 RX/TX with UART0 CTS/RTS
void user_init(void)
{
system_uart_swap();
uart_init_new();
}
//================================================================

Original func:
U0TXD⇒pin:U0TXD
U0RXD⇒pin:U0RXD
U0CTS⇒pin:MTCK
U0RTS⇒pin:MTDO

After pin swap:
U0TXD⇒pin:MTDO
U0RXD⇒pin:MTCK
U0CTS⇒pin:U0RXD
U0RTS⇒pin:U0TXD

This allows the MTDO and MTCK to be connected to a microcontroller as UART tx/rx. The bootup info will be output via U0TXD pin, but after start-up, the UART0 will output data via MTDO and receive via MTCK.