cancel
Showing results for 
Search instead for 
Did you mean: 

Did not get SWV prints in STM32CubeIDE

SDTAN0907
Associate II

Hii Everyone, I am trying to debug with SWO and SWV in STM32CubeIDE with NUCLEO-H753ZI. But, I am not getting any prints on SWV ITM Data console. As you can see all settings in the below attachments. My CPU system clock is running at 400Mhz. Anyone suggest me to get prints in SWV/ITM Data console.

SDTAN0907_0-1758694249404.pngSDTAN0907_1-1758694368626.pngSDTAN0907_2-1758694433406.png

 

SDTAN0907_3-1758694547143.png

 

15 REPLIES 15
KDJEM.1
ST Employee

Hello @SDTAN0907 and welcome to the community;

 

Are ou able to see the message in another terminal?

Which STM32CubeIDE version are you using?

Could you please share your project?

I recommend you to look at AN4948 precisely section "7.3 Printf via SWO/SWV" may help you.

 

Thank you.

Kaouthar

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.

hii @KDJEM.1 ,

 

Thank you for your response.

I have followed same procedure as mentioned in this document AN4948. But I didn't get any prints.

Yes, the message is showing up correctly in QCOM(UART Communication).

STM32CubeIDE version : 1.19.0.

I have attached project file in the attachment tool bar. Please give me solution to get prints in SWV ITM data console.

 

Thanks & Regards,

Divya.

 

 

 

Pavel A.
Super User

To start the ITM trace you need to wait until the debugger stops at the first breakpoint, usually at main.

Then click the icon on the ITM console toolbar, as shown: It should change color to RED. Then resume execution.

PavelA_0-1758902792040.png

Also, try to limit the SWO clock: up to 4 or 8 MHz, not 12.

 

Hii @Pavel A. 

Thank you your reply, I did same thing as you said. But I didn't get any prints.

Pavel A.
Super User

The ITM trace is sometimes very hard to get working, of no clear reason. Try other software, for example, CubeProgrammer to view the prints.

 

SDTAN0907
Associate II

I have done with CubeProgrammer. In that application also, I didn't get any prints

 

I did the same way as mentioned in the above thread. But I didn't get any prints.

Pavel A.
Super User

Then, maybe, software regression? I don't use the latest cubeide yet. Try to view ITM in cube programmer.