cancel
Showing results for 
Search instead for 
Did you mean: 

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.

RHofm
Associate II

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

2 REPLIES 2
RHofm
Associate II

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.

canix5735
Associate