Issues with Viewing PRINTF Output on STM32 Nucleo L476RG with X-Nucleo IDB05A1

I'm working with the STM32 Nucleo L476RG board and the X-Nucleo IDB05A1 expansion board to develop Bluetooth Low Energy applications. My development environment is Keil uVision5, and I’ve successfully built and flashed the SensorDemo example from the STM32CubeExpansion package. The code runs fine, and I can debug it, but I’m having trouble viewing the output from the PRINTF statements in the example. The board is connected to my computer through UART using the virtual COM port on the onboard ST-LINK. I'm configuring the project using STM32CubeMX with HAL libraries. I’ve tried redirecting the printf output via UART and even enabled semihosting to capture the output in the debug console, but neither method has worked for me. Does anyone have suggestions for an easier way to view the PRINTF output, or could you recommend a better approach or development environment for working with STM32 Bluetooth LE boards? Any advice would be greatly appreciated.
1 Reply
Joseph Ogbonna
Joseph Ogbonna3mo ago
Use a serial terminal tool (e.g., PuTTY, Tera Term, or HTerm) to connect to the virtual COM port. Set baud rate to match your project's UART configuration. In your code, redirect printf to UART Alternatively, consider, STM32CubeMonitor for monitoring and debugging.
Want results from more Discord servers?
Add your server