2025-03-02 11:28 PM
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;
}
"