cancel
Showing results for 
Search instead for 
Did you mean: 

ITM Trace by GDB + OpenOCD

pestov
Associate II
Posted on January 21, 2014 at 05:59

I debug my C programs in Eclipse + GDB + OpenOCD by ST-Link/V2 (SWD), it works good.

In my programs printf retargeted to ITM_SendChar (Instrumentation Trace Macrocell), and I can see debug strings (printf) in Serial Wire Viewer in ST-Link Utility, but I can't see it in Debug console in eclipse + OpenOCD.

What should I do to see it in eclipse?

#openocd
3 REPLIES 3
os_kopernika
Associate II
Posted on January 21, 2014 at 16:31

https://github.com/texane/stlink

THIS FORUM SOFTWARE DRIVES ME CRAZYYYYYYYYYYYYY!!!!

WTF, ADMINS, WHERE ARE YOU???????????

pestov
Associate II
Posted on January 22, 2014 at 05:32

ok. I 

launched STLink GDB Server (st-util), connected gdb to 4242, but cant see ITM trace strings.

It doesn't work!

os_kopernika
Associate II
Posted on April 29, 2014 at 15:39

texane/stlink with SWV does work. I have used it successfully.

Anyway, OpenOCD 8.0 (rc2) also works with SWV. With St-link/V2 from Discoveries.

It logs captured data to a file (I do not know how to push it to a console).

Tested with STM32L-Discovery.