Hi All,
I'm going through the STM32Cube RTC example, and I'd like to see the output of the sprintf in the serial window. I opened the serial window and nothing is being printed.
I've been reading around debugging using uVision IDE, and read that serial window works with ULink and some other debug adapters but I didn't read anything about USB.
Currently I'm just using the mini usb port of the STM32L053R8 Nucleo board to program the chip. Is it possible with USB to read serial data?
If not, is there a way to set up a COM to PC without using debug adapters?
Thanks!
The ST-LINK on the Nucleo provides a VCP (Virtual Serial Port), check Device Manager for the COM port this is on. You can use a Terminal program to connect to this, and you'd need to write code on the STM32 to enable the USART connected to the VCP (nominally USART2 PA2/PA3 on other Nucleos, but read the manual)
The Cortex-M0 does not support the SWV (Serial Wire Viewer) method, ie "Debug (printf) Viewer"