Skip to main content
TCash.1
Associate III
July 31, 2025
Solved

Using SWV Statistical Profiler With ThreadX

  • July 31, 2025
  • 3 replies
  • 365 views

Hello All,

 

I am trying to use the SWV Statistical Profiler in STM32CubeIDE while debugging a stm32H7.

 

I am also using ThreadX RTOS for the project. 

 

I am getting debug output from the SWV Trace Log.  But nothing is appearing in the SWV Statistical Profiler.  The RED button is not grayed out - but it also does not log anything after pressing record when debug is paused. and then resuming.

I have ITM Stimulous port 0 checked and PC Sampling and Timestamps checked, as well as EXETRC checked.

 

I am wondering is this something that is disabled when using an RTOS?  I understand that the output will be spread between tasks.

 

I am also running STMCubeIDE on linux.

 

Any Help/Tips Appreciated

Thanks,

-Trevor

 

 

 

 

 

 

 

 

 

Best answer by TCash.1

Hi MHoll.2,

 

After changing the SWV clock speed to match the TRACE clock (instead of the core clock) the profiler started working.  (STM32H733VGHx)

 

 

Thanks,

Trevor

 

3 replies

Pavel A.
Super User
August 1, 2025

Did it work in previous CubeIDE version? 

TCash.1
TCash.1Author
Associate III
August 9, 2025

This is my first time using ThreadX in a project.  I can confirm that using it in a simple nucleo H7 project - the profiler works fine with my setup. (and has worked previously).  

As of now - I can only assume something with ThreadX disables it.

 

MHoll.2
Senior III
August 10, 2025

I'm using SWV trace Log with ThreadX (and FreeRTOS) an for me it's working. Please verify that the TRACESWO pin is set to the SWO function (AF0) by you application.

TCash.1
TCash.1AuthorBest answer
Associate III
August 22, 2025

Hi MHoll.2,

 

After changing the SWV clock speed to match the TRACE clock (instead of the core clock) the profiler started working.  (STM32H733VGHx)

 

 

Thanks,

Trevor