I have a function that I have declared as BSP_CMSE_NONSECURE_ENTRY uint32_t Secure_VeeSerialNumberGet(void);It exists in my secure application and I am calling in from my non-secure application. Whenever I call it, I end up in the Default_Handler().
// Secure side
BSP_CMSE_NONSECURE_ENTRY uint32_t Secure_VeeSerialNumberGet(void) {
return VeeSerialNumberGet();
}
The address looks correct before the call.
static uint32_t serial_number = 0;
serial_number = Secure_VeeSerialNumberGet();
I tried to make this as simple as possible and build on it if I need to.
I am not sure what I am doing wrong. I have tested all the functions within my secure app. I just need to get it to call from my non-secure app.Thanks!
EK_RA6M5_Virtual_EEProm_Trustzone.zip