Azure RTOS Integration in TF-M Environment - B-U585-IOT2A
Hello Team
We are using ST's T-FM environment for STM32U585 MCU. We have observed one strange behaviour while using the non secure callable function in the non secure code. The problem is such that till the call to "TX_PORT_SPECIFIC_PRE_INITIALIZATION"(in the Azure RTOS init function) I am able to execute a function declared in the secure_nsc.c(secure gateway), but if I try to call this function after TX_PORT_SPECIFIC_PRE_INITIALIZATION, I am getting hardfault_error(). The hardware fault analysis shows the following results:

Please help us out in the possible causes and solution for the issue
(in the non secure code)
Flow of the APIs:
MX_ThreadX_Init()
tx_kernel_enter()
_tx_initialize_kernel_enter()
TX_PORT_SPECIFIC_PRE_INITIALIZATION
