I bought a cheap "st-link v2 emulator programmer" and an STM32f013C8T6 of Ebay. Using Atollic on Windows 8 and the SWD interface of the MCU, I am able to upload and run code, set breakpoints and watch variables but I can“t use printf over ITM or SWV Trace.
I have also tried using a genuine ST-LINK v2 of a Nucleo stm32l152re board with the same results.
The connections between ST-LINK and MCU are as follows:
ST-LINK - MCU:
SWDIO - SWDIO, GND - GND, SWCLK - SWCLK, 3.3V - 3.3V
Unused pins on the ebay ST-LINK: RST, SWIM
Unused pins on the genuine ST-LINK: NRST, SWO
Any advice in this matter would be appreciated and I would be happy to provide more information if needed.