This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
串口打印信息可以使用uartstdio.c中的UARTprintf即可,默认的是串口0.
如果想要使用其他串口,修改uartstdio.c中的如下代码:
//*****************************************************************************
//
// The base address of the chosen UART.
//
//*****************************************************************************
static uint32_t g_ui32Base = 0;
把这个值改了就行。当然源码中要先初始化对应的串口。