Hello,
We are developing a library which is intended to use the trustzone feature available with nrf5340 DK. We followed the instructions available in Using a custom Secure Partition Manager with your application and succeeded in adding custom secure services.
When we try to debug with secure services functions in SPM, we are facing the "device reset issue" when use the printf() (or) printk() function in secure functions while calling the secure function(spm_secure_function()) from non-secure firmware.
Is it a bug or a limitation imposed in SPM? Could you please help to clarify and also any solution to fix this problem for easy debugging with secure functions?
Device not reset case:
__TZ_NONSECURE_ENTRY_FUNC
void spm_secure_function(void)
{
// DO SOMETHING
}
Device resetting case:
__TZ_NONSECURE_ENTRY_FUNC
void spm_secure_function(void)
{
printf("spm_secure_function called\n");
}
