Skip to main content
Visitor II
May 10, 2025
Question

SWV ITM console not working on STM32F407 Discovery Board

  • May 10, 2025
  • 2 replies
  • 631 views

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

Amel NASRI
Technical Moderator
May 20, 2025

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.
Tesla DeLorean
Guru
May 20, 2025

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 VenmoUp vote any posts that you find helpful, it shows what's working..