cancel
Showing results for 
Search instead for 
Did you mean: 

ITM configuration for SWD print

horairajilani
Associate II
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
6 REPLIES 6
vincenthamp9
Associate III
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
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
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
Senior II
Posted on August 02, 2016 at 09:31

google told me eeverything.......

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

Thats true, thanks 🙂