Skip to main content
Akshit Singhal
Associate II
May 1, 2018
Question

SWV issue getting the Garbage Values

  • May 1, 2018
  • 3 replies
  • 1685 views
Posted on May 01, 2018 at 14:09

I was trying to get the debug statements on the SWV on Nucleo64 STM32F302R8. I tried the tutorial ''

https://www.youtube.com/watch?v=BwgPV3uKuzY

'' by Atollic Tools but had no success it prints out Garbage Values. Is there anything I'm missing???0690X00000604A1QAI.jpg

Settings made on the syscalls.c to get the printf function linked with the SWV.

0690X00000604eEQAQ.jpg0690X00000604bzQAA.jpg0690X00000604fRQAQ.jpg

#stm32f302r8 #swv-st-link/v2-debug #stm32
This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
May 1, 2018
Posted on May 01, 2018 at 14:32

Perhaps your code isn't actually running at 72 MHz?

Check the code, and verify internal clock via PA8 (MCO)

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Akshit Singhal
Associate II
May 1, 2018
Posted on May 01, 2018 at 15:09

It works but partially. Only print first statement that too incomplete. I think there's more to it.

Can you please tell me the points to keep in mind while using SWV

Turvey.Clive.002

‌?

Tesla DeLorean
Guru
May 1, 2018
Posted on May 01, 2018 at 16:23

Make sure the ST-LINK has current firmware.

Use the ST-LINK Utilities SWV window as the test case.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Akshit Singhal
Associate II
May 2, 2018
Posted on May 02, 2018 at 10:01

It works.

Thank you for the support.

Akshit Singhal
Associate II
May 2, 2018
Posted on May 02, 2018 at 10:14

Turvey.Clive.002

How can we use the multiple SWV ports at the same time?

It doesn't give the direct support to switch between the SWV port.

Tesla DeLorean
Guru
May 2, 2018
Posted on May 02, 2018 at 13:28

Not a mode of functionality I have used/investigated, would likely be a combination of debugger software, and writing to different ITM registers.

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