Issues with Configuring ITM Output in Atollic TrueSTUDIO for STM32L4

Currently, I am utilizing the Atollic Truestudio IDE (which is based on Eclipse) to create firmware for different STM32L4 Nucleo boards. To date, my approach has involved employing printf through a Virtual COM port linked with UART.

I now intend to transition towards utilizing printf alongside STM32 ITM.

My focus is on the Nucleo-L4A6ZG board, which utilizes a gdb server for debugging purposes.

"I have made changes to the Debug Configuration in Atollic and enabled SWV with an 80MHz core clock. Additionally, I updated my startup script according to the STM32L4 reference manual (although it may not be required as TrueStudio/Eclipse provides GUI-based SWV configuration options; however, this approach seemed more straightforward to me) :
(My Script is found below)



When debugging, I reach the line ITM->PORT[0U].u8 = (uint8_t)ch; but there is no output in the SWV console after starting the trace in the IDE.

What might I be missing? Also, what exactly does the core clock of SWV refer to?
file0.jpg
Was this page helpful?