2025-08-27 3:56 AM
Hello,
Using the latest CubeMX 6.15.0 I was generating ThreadX for Secure - Non Secure Project (for STM32N6 - Cortex_M55).
This did not add file : "\Middlewares\ST\threadx\ports\cortex_M55\gnu\src\txe_thread_secure_stack_allocate.c" and so is not added in to the CubeIDE project.
Where as it's counterpart - "\Middlewares\ST\threadx\ports\cortex_M55\gnu\src\txe_thread_secure_stack_free.c" is getting generated and added to the project.
Also, compiler includes like "/Secure_nsclib" , "/Drivers/CMSIS/Include" did not get added into the Compiler Include Paths in the CubeIDE project that this CubeMX generates.
2025-08-27 4:02 AM
Hello @prapk-engr
Could you please provide your IOC in order to reproduce the same issue that you are facing.
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.
2025-08-27 4:09 AM
2025-08-28 2:58 AM
Hello @prapk-engr
Regarding the missing file txe_thread_secure_stack_allocate.c, thank you very much for bringing this issue to our attention.
I have raised this issue with our development team for resolution under internal ticket 216459.
As for your second point, after reviewing the compiler include paths, I can confirm that both /Secure_nsclib and /Drivers/CMSIS/Include have been successfully added.
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.