Skip to main content
RHofm
Associate
July 19, 2019
Question

How to debug print with Nucleo L476RG board with st-link. I use printMsg command , it compiles Ok, but no output on itm window. I am using stm32cubemxide 1.01 to do this. Regards, Ronald.

I've made my own lab.

it is 4 switches on gpio input's with interrupt

it switches 4 leds, so i you press switch 1 , led1 goes on , it works fine.

But i want to see debug messages in ITM terminal screen and i don't het this up and running.

hopefully someone can give me a pointer how to do this.

posted 3 screenshots :

one with de printMag statement and the other is the debug config. and the third is my test setup, the test program works fine , but i want to see debug messages.

I am using a Nucleo L476RG board with the integrated ST-Link interface

This topic has been closed for replies.

2 replies

RHofm
RHofmAuthor
Associate
August 13, 2019

I found the answer myself.

there;a a document about debugging.

it all about divert stdio printf output.

After that you can use printf statements and anable the debug channel in cubemxide

It now works correctly.