Skip to main content
Javier1
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 only0693W00000DmxqdQAB.png

  • 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 unticked

Generic 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

0693W00000DmxuLQAR.png

This topic has been closed for replies.
Best answer by Javier1

I started following another tutorial with another dev board and it works now, no idea why.

  • Usart1 was cofigured as asynchronous without hardware flow control.
  • DMA was assigned to USART TX
  • USART1 global interrupt was ticked
  • Inside STM32_WPAN/BLE/Configuration:

0693W00000FAgT6QAL.pngI attached the cubeMX config

2 replies

Javier1
Javier1Author
Principal
September 13, 2021

I tried tying PB4 (UART1 CTS pin) to GND but no luck neither.

tried dissabling USB Device and Serial Wire debuggign to get rid of the cbeMx warning... still not working

hit me up in https://www.linkedin.com/in/javiermuñoz/
Javier1
Javier1AuthorBest answer
Principal
September 28, 2021

I started following another tutorial with another dev board and it works now, no idea why.

  • Usart1 was cofigured as asynchronous without hardware flow control.
  • DMA was assigned to USART TX
  • USART1 global interrupt was ticked
  • Inside STM32_WPAN/BLE/Configuration:

0693W00000FAgT6QAL.pngI attached the cubeMX config

hit me up in https://www.linkedin.com/in/javiermuñoz/