a bug about using execution profile kit in threadx
Hi, i'm trying to use execution profile kit in threadx. I use STM32H750VBT6 and STM32CubeIDE1.12.0
firstly, i use stm32cubemx to generate the code include threadx. I can't find execution profile file in the code. So I get tx_execution_profile.h and tx_execution_profile.c from the rtos threadx in github. And I put them in Middlewares\ST\threadx\common\inc and src.
Secondly, I define TX_EXECUTION_PROFILE_ENABLE in tx_user.h, init DWT and use _tx_execution_initialize().
In the end, I try to use _tx_execution_thread_time_get() to get time. Unfortunately, I alway get 0.
I debug the project and find that the problem is in tx_thread_schedule.S . It seems that the program did not run under this condition:
#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE))
even if I already define TX_EXECUTION_PROFILE_ENABLE in tx_user.h. That makes me confused. because the .S includes tx_user.h .
However, I directly define TX_EXECUTION_PROFILE_ENABLE in tx_thread_schedule.S . The problem is solved. But it's dangerous because the changes disappear when I use stm32cubemx to regenerate the code.
So how can I do to solve it?
This is my frist time to post. Hope i do it correctly. hhh...

