cancel
Showing results for 
Search instead for 
Did you mean: 

SWV ITM console not working on STM32F407 Discovery Board

vakati
Associate

Dear STMicroelectronics Support Team,

 

I am working on the STM32F407G-DISC1 (STM32F4 Discovery) board and I am unable to watch printf() statement in SWV ITM Console output in STM32CubeIDE.

 

To enable the SWO trace output, I referred to the user manual and identified that SB12 (SWO) was in OFF state by default. Following the recommendation, I removed the 0-ohm resistor between the SB12 pads on the backside of the board and directly shorted the pads using solder to connect the SWO signal to PB3.

I also attached an image of the soldered SB12 pads for your reference.

 

Here are the board details:

 

- **MCU Model**: STM32F407VGT6  

- **Board**: STM32F4 Discovery

 

Could you please advise if any additional configuration or hardware action is needed for the SWO functionality to work properly?

Request you to send me a reference video link for any modifications mentioned by you.

 

Thank you for your support.

 

Best regards,  

Vakati Hemanth ,

 

 

 

2 REPLIES 2
Amel NASRI
ST Employee

Hi @vakati ,

Please refer to the first section of the article: Using the ITM console for printf redirects and LWIP debug messages.

Another option: How to redirect the printf function to a UART for debug messages.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Test ITM_SendChar by itself.

Clock and core settings must be consistent. ie what the MCU is running at and what you tell the PC side software

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