When the interrupt routine switches from supervisor mode to user mode PSW PM flag is not changing to 1.(1-user mode, 0-supervisor mode) .
Which processor do you use?
How do you write the PSW?
If you use RX, do you know this note?
Switching from supervisor mode to user mode requires execution of an RTE instruction after having set the PSW.PM bit saved on the stack to 1 OR executing an RTFI instruction after having set the BPSW.PM bit to 1.
Silly question maybe but were you in user mode before the interrupt?
In reply to FrankL:
Hello, I'm using RX63T. I'm using CMT and ADC interrupt in my program.First time CMT timer will be triggered(with priority 7), next time ADC interrupt will be triggered(with prority 10).But next CMT interupt is not triggered.
In reply to padmapriya.appasamy:
have you found a solution to your issue?