keil/include/main/main.c
@@ -368,11 +368,23 @@
            first_search_flag=1;
    }
}
void boot_deinit(void)
{
   //将boot中串口返回普通gpio
// UART0 TX/RX
    io_pin_mux_set(IO_PIN_5, IO_FUNC0);
    io_pin_mux_set(IO_PIN_6, IO_FUNC0);
    // UART1 RX/TX
    io_pin_mux_set(IO_PIN_10, IO_FUNC0);
    io_pin_mux_set(IO_PIN_9, IO_FUNC0);
    uart_close(UART_ID1);//解绑原来串口1
    uart_close(UART_ID0);//解绑原来串口0
}
uint8_t flag_4guart_needinit=0;
int main(void)
{
    board_clock_run();
      boot_deinit();
    board_pins_config();
    board_debug_console_open(TRACE_PORT_UART0);
    // Reset reason