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;
}
"
2025-04-28 5:00 AM
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