cancel
Showing results for 
Search instead for 
Did you mean: 

¿enabling UART1 Debug Traces in STM32WB55 (BLE mode)?

Javier1
Principal

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

we dont need to firmware by ourselves, lets talk
1 ACCEPTED SOLUTION

Accepted Solutions
Javier1
Principal

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

we dont need to firmware by ourselves, lets talk

View solution in original post

2 REPLIES 2
Javier1
Principal

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

we dont need to firmware by ourselves, lets talk
Javier1
Principal

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

we dont need to firmware by ourselves, lets talk