Skip to main content
pestov
Associate III
January 21, 2014
Question

ITM Trace by GDB + OpenOCD

  • January 21, 2014
  • 3 replies
  • 1382 views
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
    This topic has been closed for replies.

    3 replies

    os_kopernika
    Visitor II
    January 21, 2014
    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
    pestovAuthor
    Associate III
    January 22, 2014
    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
    Visitor II
    April 29, 2014
    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.