ISR stack for the IAR/RL78 port

Hello,
I’m using the RL78 port with IAR (RL78/G13 MCU). It seems that the ISR uses the stack of the task it was running when the interrupt occured.

Does anyone know if this the expected behaviour of this port? Or it’s me doing something wrong?

Thank you,

RL78 manual does not mention a separate stack pointer register for interrupts, so it seems correct the interrupt uses the stack of task that got interrupted. Are you facing any issue?

No, I just had some stack overflow problem on tasks not related to the interrupt that caused the overflow and I wanted to understand what was going on and if there was some hidden problem.

I’m glad @aggarg was able to help you out. Thanks for reporting back your issue. We want to make sure your port isn’t having issues :slight_smile: