2025-05-09
9:56 PM
- last edited on
2025-05-12
3:11 AM
by
Lina_DABASINSKA
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 ,
2025-05-20 3:10 AM
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.
2025-05-20 5:46 AM
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
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.