Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 7 months ago.
cpu block in InterruptIn from DigitalInOut output set in Timeout ISR on KL25Z
Hi,
I have a cpu block when I try to simulate input in my class Speedometer by setting DigitalInOut pin to output and write someting to it from a Timeout ISR.
My guess is that the InterruptIn interruption arrive while still inside the ISR of the timeout and this triggers the problem. But second interrupt should be done later, or interrupt the first one, but not block cpu right?.
My worry is that can also happen with other real live interrupts in the rare case they arrive during the timeour ISR.
PD: Why a timeout?: My real code changes the time on every interruption to create simulated speed ramps.
That is a simplified version of my code: https://developer.mbed.org/users/Manel_Marin/code/TEST_DIGITALINOUT-INTERRUPTIN/