cancel
Showing results for 
Search instead for 
Did you mean: 

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

zqizh.1
Associate II

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;

}

"

 

0 REPLIES 0