Skip to main content
PJose.4
Senior
October 13, 2023
Question

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

  • October 13, 2023
  • 3 replies
  • 1182 views

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
December 14, 2023

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

Jocelyn RICARD
ST Employee
December 15, 2023

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
January 15, 2024

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