My experiment also reveals that the MCU is interrupted once during the execution of this instruction: attachInterrupt(digitalPinToInterrupt(6), message, FALLING);.
One may proceed to program the interrupt using ASF Strategy in order to make an authentic declaration that the above-mentioned instruction is really not compatible with DUE though it works fine with UNO.
Help is being sought to get the link for ZIP version of the asf.h file.
This snippet works as expected (I hook a pull_up resistor on pin 6 = PC24). I tested it with a button switch without a debounce( there should be a debounce either software or hardware):
// Hook a pull-up resistor of 1K or more between pin 6 and 3.3V
volatile boolean Flag;
void setup()
{
Serial.begin(250000);
pinMode(6, INPUT);
PIOC->PIO_ISR; // Clear status register
NVIC_ClearPendingIRQ(PIOC_IRQn); // Clear pending ISR
attachInterrupt(6, message, LOW);
}
void loop()
{
if ((Flag == true)){
Serial.println(" pin 6 is low ");
Flag = false;
}
}
void message()
{
Flag = true;
}