Skip to main content
horairajilani
Associate II
July 25, 2016
Question

ITM configuration for SWD print

  • July 25, 2016
  • 6 replies
  • 1714 views
Posted on July 25, 2016 at 08:42

Hello,

We are using STM32l476 uC with Jlink segger debugger, and trying to print logs through ITM to Segger J-Link SWO Viewer , the 48 MHz HSE clock is being used as sysclk with RCC_PLL_NONE,

We are using   ITM_SendChar API present in core_cm4.h

Do we need to configure anything before using ITM_SendChar API ?

Can anyone please provide any application note ?

#stm32l4 #itm #printf-swo-debug
This topic has been closed for replies.

6 replies

vincenthamp9
Associate III
July 26, 2016
Posted on July 26, 2016 at 19:20

Have you set the following bit inside the DBGMCU_CR?

DBGMCU->CR |= DBGMCU_CR_TRACE_IOEN;

horairajilani
Associate II
August 2, 2016
Posted on August 02, 2016 at 06:29

Yes, I tried same but no luck,

Do i need to enable PLL, as we are directly using 48 MHz External clock without internal PLL

horairajilani
Associate II
August 2, 2016
Posted on August 02, 2016 at 06:32

@dembek.radoslaw.001

Thanks, but I can't find anything related to configuring ITM and SWO :(

Radosław
Associate II
August 2, 2016
Posted on August 02, 2016 at 09:31

google told me eeverything.......

horairajilani
Associate II
August 5, 2016
Posted on August 05, 2016 at 16:47

Thats true, thanks :)