Skip to main content
PJose.4
Senior
Oct 13, 2023 10:17 AM UTC
Question

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:

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

 

This topic has been closed for replies.

3 replies

Nitin
Associate III
Dec 14, 2023 10:12 AM UTC

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

Jocelyn RICARD
ST Employee
Dec 15, 2023 1:51 PM UTC

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
Jan 15, 2024 10:18 AM UTC

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