Hello,
On exiting non-secure interrupt handler, armv8-M cm33 gets in a bad state and hangs.
I think what's happening is, on exiting non-secure handler, cpu try to restore state from a secure area, I see "sec_err_irq_mpc" fires right after non-secure irq is cleared at handler exit.
How to allow crossing from non-secure to secure state and prevent that security error from happening.
Any clue or help is highly appreciated.
Thanks,
Mohsen
Mohsen,
There is little information here to help answer the question. I recommend you look at the below to understand what is happening on the processor as it enters (and exits) the handler.https://developer.arm.com/docs/100701/0200/armv8-m-exception-handlingIt would greatly help to connect a debugger to your target to step through the handler code.RegardsRonan
Thanks a lot Ronan!
My issues are resolved now.
Thanks for all your help!