2026-01-22 7:08 PM
CubeMX version 6.16.1
I found STM32WBA55CG project with ThreadX, the parameter of "TX_LOW_POWER_USER_ENTER" and "TX_LOW_POWER_USER_EXIT" will be reset to default after the ioc re-open.
This bug can be 100% reproduce.
Solved! Go to Solution.
2026-01-26 6:26 AM
Hello @Kenwang
Your detailed explanation is much appreciated.
Issue has been escalated to dev team under internal ticket ID 225925 .
I will keep you posted with updates.
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-01-22 10:22 PM - edited 2026-01-23 3:24 AM
Hello @Kenwang
I attempted to reproduce the issue you described by setting the parameters as follows:
TX_LOW_POWER_USER_ENTER to TX_UserLowPower_Enter
TX_LOW_POWER_USER_EXIT to TX_UserLowPower_Exit
After closing and reopening the IOC file, both parameters remained with the modified values and did not revert to their defaults. (Please also review the IOC file attached)
Could you please try again on your side, ensuring that you:
1- Press Enter after editing each parameter value.
2- Save the IOC file before closing STM32CubeMX.
I look forward to your feedback.
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-01-25 6:03 PM
Thank you for your reply and for taking the time to reproduce the issue.
Sorry for not explaining the situation clearly in my previous message. Let me clarify the exact scenario I am encountering.
In my project, I intend to use the functions ThreadXLowPowerUserEnter and ThreadXLowPowerUserExit to handle entering and exiting sleep mode. As described in app_ui_control.h, when these functions are used, TX_LOW_POWER_USER_ENTER and TX_LOW_POWER_USER_EXIT must NOT be defined.
Therefore, when generating the project from CubeMX, I intentionally clear the values of:
TX_LOW_POWER_USER_ENTER
TX_LOW_POWER_USER_EXIT
After clearing these two fields, CubeMX correctly generates the code and the project builds and works as expected.
However, the issue occurs after closing and reopening the IOC file:
Even though the IOC file was saved,
Upon reopening it, TX_LOW_POWER_USER_ENTER and TX_LOW_POWER_USER_EXIT are automatically restored to their default values:
App_ThreadX_LowPower_Enter
App_ThreadX_LowPower_Exit
This behavior is 100% reproducible on my side and makes it impossible to persist the “empty” configuration for these two parameters. That is why I reported this as a bug: the cleared values of TX_LOW_POWER_USER_ENTER and TX_LOW_POWER_USER_EXIT are not retained after reopening the IOC file.
Please let me know if you need additional information or a minimal project to reproduce this behavior.
Thank you again for your support.
PS : attached is my ico file.
2026-01-26 6:26 AM
Hello @Kenwang
Your detailed explanation is much appreciated.
Issue has been escalated to dev team under internal ticket ID 225925 .
I will keep you posted with updates.
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-01-26 10:35 PM
Hi Ghofrane,
That’s great, thank you very much for your help. I appreciate it and look forward to your updates.
Thanks,
Kenwang