AnsweredAssumed Answered

Return from Exception Handler

Question asked by pratik.s on Feb 10, 2016
Latest reply on Feb 10, 2016 by Clive One

I am using STM32F439 Eval board. I am trying to understand Micro. supported exceptions. I want to know, Is there anyway to come back to normal operation once we get any exception.

lets assume i am doing division operation and  divisor happen to be "ZERO". so in this case, i would get usage fault exception and corresponding handler will get invoked.
now in Handler i am clearing DIVBYZERO bit(by writing 1). 
So as per my understanding,i cleared the flag now i am suppose to go back to my normal routine(lets say main()). but it is not happening, it is coming back usage fault handler.

so now i have following questions
1. how to come out of exception? are there any other bits i am suppose to clear?
2. or once any exception comes, i cant go back to normal routine. only sw reset or POR will help me.

Thanks in advance...