Hello,
I have an Arduino sketch (DIYWaterChiller) in which I'm trying to capture the pulse rate of two water flow sensors. In my SimulIDC circuit (DiYWaterChiller.sim1), I'm using two clocks to model the sensors. These are connected to the Arduino UNO interrupts 2 and 3.
Shortly after turning one of these clocks in simulation, The simulator reports the error:
I assume this means that an RETI instruction was executed outside of an interrupt service routine, which would be a compiler bug.
Is there a way to immediately stop the simulation when an error occurs, to check the program counter, stack, ...? Or how can this be debugged?
I have an Arduino sketch (DIYWaterChiller) in which I'm trying to capture the pulse rate of two water flow sensors. In my SimulIDC circuit (DiYWaterChiller.sim1), I'm using two clocks to model the sensors. These are connected to the Arduino UNO interrupts 2 and 3.
Shortly after turning one of these clocks in simulation, The simulator reports the error:
Interrupts::retI Error: No active Interrupt
I assume this means that an RETI instruction was executed outside of an interrupt service routine, which would be a compiler bug.
Is there a way to immediately stop the simulation when an error occurs, to check the program counter, stack, ...? Or how can this be debugged?