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.
Hello Joseph Yiu,
thank you very much.
Best regards,
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
View all questions in Cortex-M / M-Profile forum