2025-09-08 10:34 AM - edited 2025-09-08 10:37 AM
Hello,
I am currently working on the STM32WB5MM and I need a debugger terminal to monitor some application functionalities.
While testing, I noticed that in the HeartRate example, enabling the following macros allows me to print debug traces successfully:
#define CFG_DEBUG_TRACE_UART hw_uart1
#define CFG_DEBUGGER_SUPPORTED 1
#define CFG_DEBUG_BLE_TRACE 1
#define CFG_DEBUG_APP_TRACE 1
#define CFG_DEBUG_TRACE_FULL 1
Additionally, including the header dbg_trace.h in the main.c makes the traces available and I can also display messages from main. ( at least to test if its working )
However, when I create a new project and follow the official guidelines here:
STM32WB BLE STM32CubeMX - Enable traces,
I do not see any output on the terminal, regardless of the configuration.
Could you please advise what additional configuration or source files (e.g., UART initialization, or missing debug modules) are required in a custom project to replicate the behavior of the HeartRate example?
Thank you in advance for your help.