DigitalOut in Interrupt Context


I’m trying to use several of the GPIO pins to precisely measure timing on an STM32H7. When I use the DigitalOut class in Mbed OS to drive the GPIO pin, the board crashes, saying that it’s “Not allowed in ISR context”.

Is there an alternate version of DigitalOut that can be called from within ISR context?


-Dan Fay

Hi Dan,

Can you share your code or its simplest version where the crash occurred?


Thanks for the response, but it looks like it was something else causing the crash.