cancel
Showing results for 
Search instead for 
Did you mean: 

How do I log text from microcontroller via debugger to Eclipse-window?

arnold_w
Senior
Posted on February 06, 2017 at 16:48

I am working with the STM32F045-microcontroller and I write my source code in Eclipse and I build with GNU ARM C/C++ Cross Compiler and I debug using GDB OpenOCD Debugging with ST-LINK/V2. Is it possible to write a text string, for example 'Hello World', from the microcontroller code and make that text string appear in some of the windows in Eclipse when debugging? For example:

int main(int argc, char* argv[]) { 

    printToEclipseWindowViaDebugger('Hello World');   // Write Hello World to one of the windows in Eclipse

}

1 REPLY 1
Posted on February 06, 2017 at 17:16

Cortex-M0 devices don't support the SWV debug channel (ie SWO PB3, via ITM_SendChar, etc)

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..