Other Parts Discussed in Thread: RM48L952, HALCOGEN
Hello,
I do work with the irqDispatcher mode and can observe that the phantomInterrupt is called.
In my project I want to use the nested interrupt feature and I do use the code Christian Hegert published for this.
As long as the phantom interrupt occurs, I will not be able to use this code.
So I would be very pleased, if somebody could help me to understand why the phantom interrupt is called.
- RM48L952
- I do use HALCoGen code, with some additions to init the LR of Systemmode, and to set flash wait states correctly
- I do have a couple of IRQ, 2 ADC EOC, rest are communication interrupts (SCI, CAN)
- I do use the IRQ dispatch mode with the goal to nest interrupts
- I use one FIQ (the FIQ isr has the pragma FIQ, this should be correct I think)
- the phantomInterrupt() function is still surrounded with the pragmas of a interrupt IRQ, even this should not be necessary if I understand correctly.
- Even if I do not nest any interrupt the phantom Interrupt occurs. (no enableIRQ() in my irqDispatch_c)
- What can cause the phantom interrupt to be called?
- An uninitialized register? Are there more system mode registers to be initalized (as the LR)?
Thank you for any hint to debug the cause for the phantom interrupt!
Roger