Skip to main content
zqizh.1
Associate III
March 3, 2025
Question

how to access "psa_generate_random" in "TFM_Appli\NonSecure" when freertos used

  • March 3, 2025
  • 1 reply
  • 638 views

Hi,

I've tested freertos when trustzone is enabled, the freeRTOS can work.

I've tested PSA API in "TFM_Appli\NonSecure" when freertos not used, also can work.

When I try to access PSA API in "TFM_Appli\NonSecure", when freertos is used, it will trigger MCU reboot.

Please advise how to access PSA API in "TFM_Appli\NonSecure" when free rtos used.

"

uint8_t TRU_TRNG(uint8_t *aucRand, uint8_t ucNumOfByte) {

psa_status_t status = PSA_SUCCESS;

 

status = psa_generate_random(aucRand, ucNumOfByte);

if (status != PSA_SUCCESS)

return FAIL;

else

return 0;

}

"

 

1 reply

Technical Moderator
April 28, 2025

Hi @zqizh.1 

Can you test by calling the PSA services (or only one service) in one thread and check if you are seeing any issue ?

As first step we need is to isolate multiple threads calling the same services simultaneously.

 

Best regards