This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cortex M7 : Exception return query

Hi I am working on Cortex M7. I am generating some interrupts and according to it my ISR is being called which I have already installed. After the execution of the ISR the PC is not returning to the instruction at the time of the interrupt, due to which I am not able to proceed further.

I have tried the PUSH of lr and then the POP to pc but that does not work(Maybe I am calling it at a wrong place). Also tried the RX instruction, with an example will be the best.

Please provide some info on how to return from the exception.

Thanks in Advance

Parents
  • Hi,

    Thanks for your prompt and detailed reply!!!

    Yes, the C_int_handler is a function call and now it works properly. The operation now performed is calling the C_int_handler function once the interrupt is generated, the PC properly returns to the previous instruction. There was one more issue that there were 2 more interrupts generated(due to some other operation and these interrupts were not enabled) along with the interrupt which I was generating and processing.

    Thanks!!!

Reply
  • Hi,

    Thanks for your prompt and detailed reply!!!

    Yes, the C_int_handler is a function call and now it works properly. The operation now performed is calling the C_int_handler function once the interrupt is generated, the PC properly returns to the previous instruction. There was one more issue that there were 2 more interrupts generated(due to some other operation and these interrupts were not enabled) along with the interrupt which I was generating and processing.

    Thanks!!!

Children
No data