Serial Log

Last Updated on : 2025-04-18 02:52:47download

The program logs are output via a serial port. You can connect the serial port to a PC for development and debugging purposes.

The CR3L Bluetooth LE Long Range SDK uses a flow-controlled UART to communicate with external Bluetooth chips. Therefore, you need to repurpose the logging UART as the Bluetooth UART, and redirect log output to the original user UART0 (GPIOA_13 and GPIOA_14). You shall manually specify the logging UART and set the baud rate.

// Switch the logging UART
sys_log_uart_off();
log_uart_port_init(14, 13, ((uint32_t)921600);