ThreadX secure stack with Secure Manager
Hello,
We are using an STM32H573 with the Secure Manager provided by ST running in the secure environment. In the non-secure environment, we are calling PSA functions. These calls work before ThreadX is launched but fail afterward.
According to the page Introduction_to_THREADX#STM32_integration, when TrustZone is enabled, I need to use a secure stack for each thread calling functions from the secure environment. To implement secure stacks, the functions defined in tx_thread_secure_stack.c should be added to the secure environment.The example STM32Cube_FW_H5_V1.4.0/Projects/NUCLEO-H563ZI/Applications/ThreadX/Tx_SecureLEDToggle_TrustZone illustrates this but without using the Secure Manager.
However, I need to use the Secure Manager. Can you provide some guidance ?
- Are the functions from the file tx_thread_secure_stack.c included in the Secure Manager ? If so, how can I call them ?
- Should I create a secure module with the SMDK for this ?
Thank you in advance for your support!
Best regards
Quentin
