Principal
September 13, 2021
Solved
¿enabling UART1 Debug Traces in STM32WB55 (BLE mode)?
- September 13, 2021
- 2 replies
- 2623 views
I i am trying to follow the AN5604 (STM32WB Series BLE interoperability report) but im unnable of enabling the debug UART.
Nothing shows up the Nucleo's stlink's COM port, but the programm is running, im able to conenct to the BLE device from my phone.
(on the PC side im using putty and realterm, and COM8 its the only COM port available)
CubeMX file attached
Steps i followed:
- USART1 Mode Anynchronous with pins PB7 and PB6, hardware flow control set to CTS only

- CFG_HW_USART1_ENABLED set to Enabled.
CFG_HW_USART1_ENABLED CFG_HW_USART1_ENABLED
Parameter Description:
Enable or Disable traces USART1 (USART1 Mode must be set to Asynchronous with Hardware Flow Control set to CTS only)
Please ensure that in ProjectManager Advanced Settings panel MX_USART1_UART_Init Not Generate Function call is ticked and that Vibility is untickedGeneric parameters:
CFG_DEBUG_BLE_TRACE Enabled
CFG_DEBUG_APP_TRACE Enabled
CFG_DEBUG_TRACE_LIGHT Enabled
CFG_DEBUG_TRACE_FULL Enabled
DBG_TRACE_USE_CIRCULAR_QUEUE Enabled
DBG_TRACE_MSG_QUEUE_SIZE 4096
MAX_DBG_TRACE_MSG_SIZE 1024
Application parameters:
CFG_DEBUG_TRACE_UART "hw_uart1"
Debug Options:
BLE_DBG_APP_EN "enabled"- Dissabling function call generation in cubeMx for uart1, also make it not static

