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,

    I would like to confirm that you know the lr does not contain the return address but EXC_RETURN code during processing ISR.

    When the EXC_RETURN is put into the pc, the actual return address will be extracted from the exception stack frame which had been build on the user stack.

    I guess the possible cause of the phenomenon would be that the lr had had a wrong code.

    Best regards,

    Yasuhiko Koumoto.

Reply
  • Hi,

    I would like to confirm that you know the lr does not contain the return address but EXC_RETURN code during processing ISR.

    When the EXC_RETURN is put into the pc, the actual return address will be extracted from the exception stack frame which had been build on the user stack.

    I guess the possible cause of the phenomenon would be that the lr had had a wrong code.

    Best regards,

    Yasuhiko Koumoto.

Children