cancel
Showing results for 
Search instead for 
Did you mean: 

Azure RTOS Integration in TF-M Environment - B-U585-IOT2A

PJose.4
Senior

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:

PJose4_0-1697192084818.png

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

 

3 REPLIES 3
Nitin
Associate III

I am also looking answer to exactly same question. Need quick support from ST.

Jocelyn RICARD
ST Employee

Hello @PJose.4 ,

If you are using TFM, you cannot simply call a function like this.

You need to create a service in a TFM partition.

You can have a look to TFM documentation here

This is more complex than simply adding a simple secure service with simple secure application...

Best regards

Jocelyn

 

Guillaume K
ST Employee

Hello,

In case your question concerns specifically Azure RTOS Integration in TF-M Environment you can have a look at this:

Azure RTOS Integration in TF-M Environment - B-U58... - STMicroelectronics Community

Guillaume