cancel
Showing results for 
Search instead for 
Did you mean: 

Using SWV Statistical Profiler With ThreadX

TCash.1
Associate III

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

 

 

 

 

 

 

 

 

 

3 REPLIES 3
Pavel A.
Super User

Did it work in previous CubeIDE version? 

TCash.1
Associate III

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.

 

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.