¿enabling UART1 Debug Traces in STM32WB55 (BLE mode)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-09-13 2:39 AM
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 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
Solved! Go to Solution.
- Labels:
-
DEBUG
-
STM32WB series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-09-28 5:03 AM
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:
I attached the cubeMX config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-09-13 3:04 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-09-28 5:03 AM
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:
I attached the cubeMX config
