How to clear an interrupt flag on DUE

Hi!
I've read many threads in this forum about random interrupts at the launch of a program when using Digital Pins With Interrupts, e.g.:

attachInterrupt(digitalPinToInterrupt(interruptPin), blink, CHANGE);

It seems it's a big problem with some Arduino boards - no matter what I do, I always get 1-2 interrupts when starting a program.

Normally on UNO and some other boards you would remove an interrupt flag like that:

 EIFR = (1 << INTF0); // clear INT0 interrupt flag

But it does not work on DUE.
How to remove the flag here?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.