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

What is the difference between IPSR and NVIC_ICSR of Cortex-M?

Hello experts,

suddenly I have a question.

I cannot understand the functionality between IPSR and NVIC_ICSR[VECTACTIVE].

Are there any difference?

Of course, I know IPSR can be accessed by MSR/MRS of the privileged instructions.

Thank you and best regards,

Yasuhiko Koumoto.

Parents
  • IPSR need to be pushed into stack during exeption seqences, so it also became a special register (as part of the PSR).

    Debugger cannot read special registers unless the processor is stopped. So having ICSR[VECTACTIVE] is useful too.

    As a result we have the same information in two places.

    regards,

    Joseph

Reply
  • IPSR need to be pushed into stack during exeption seqences, so it also became a special register (as part of the PSR).

    Debugger cannot read special registers unless the processor is stopped. So having ICSR[VECTACTIVE] is useful too.

    As a result we have the same information in two places.

    regards,

    Joseph

Children