Skip to main content
DBurk
Visitor II
February 28, 2019
Question

How do I get SWO working on the STM32F373

  • February 28, 2019
  • 2 replies
  • 860 views

My product uses the STM32F373CCT6 and can't get SWO working on the IAR tools and an iJet. These work on other projects just fine.

I've contacted IAR and after enough digging it looks like their doing everything correctly (as I said, these things work on other STM32 parts).

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
February 28, 2019

PB3 must be properly connected.

Frequency of core must be known and correctly coded. The divider will depend on your pods design/configuration.

For the ST-LINK/V2, which use a 2 MHz clock input, you can compute/check thusly

*((unsigned int *)0xE0040010) = (SystemCoreClock / 2000000) - 1;

Understand WHAT your system thinks it is running at

 printf("Core=%d, %d MHz\n", SystemCoreClock, SystemCoreClock / 1000000);

 printf("SWV %d\n", *((unsigned int *)0xE0040010));

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
February 28, 2019

Use some other pods to sanity/cross-check your design

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..