cancel
Showing results for 
Search instead for 
Did you mean: 

[Nucleo-N657X0-Q ]How to use swv printf in Keil arm mdk 5.39

bioak
Associate II

I would like to use SWV for debugging on the Nucleo-N657X0-Q board.

I first enabled SWV debugging and also change the CPU clock to 400 MHz.

 

image.png

 

bioak_0-1750155820298.png

 

Then, I added some code to main.c (as reference here ).

bioak_3-1750157556553.png

bioak_1-1750156771078.png

At the same time, I also set the core clock to 50 MHz in the TRACE configuration of Keil.

bioak_2-1750156875457.png

But i can't see any string in Debug Viewer.

Does anyone know what else I should check?

 

Thank's 

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

Hello @bioak and welcome to the community;

 

Have you encountered the same issue while using the STM32CubeIDE toolchain? 

I recommend you to look at this post and get inspired to check the settings:

KDJEM1_1-1750427812686.png

 

KDJEM1_0-1750427773762.png

KDJEM1_0-1750663710513.png

 

I hope this 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.

View solution in original post

2 REPLIES 2
KDJEM.1
ST Employee

Hello @bioak and welcome to the community;

 

Have you encountered the same issue while using the STM32CubeIDE toolchain? 

I recommend you to look at this post and get inspired to check the settings:

KDJEM1_1-1750427812686.png

 

KDJEM1_0-1750427773762.png

KDJEM1_0-1750663710513.png

 

I hope this 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.

Hi KDJEM,

I made a silly mistake.
At first, I used CubeIDE, but I couldn’t see any messages in the Trace View window.
So I switched to Keil MDK to verify the output.
Now I can see the messages.
The reason I couldn’t see the printf messages in CubeIDE was that I hadn’t enabled Start Trace.

Thank you for your reply. I really appreciate it.

bioak_1-1750658582818.png