Closed Ulli2k closed 3 years ago
We are looking at this now, should have a fix very soon.
Many thanks for reporting this. This actually needs a bit of thought, because the Arduino core has been changed in a way that has not been propagated to other cores such as seeed for example. I'm looking at it now to work out how to handle this. What I've done for now is move this BasicArduinoInterruptAbstraction class into its own file, as most people don't use it, and in new code it would be better to use the BaseEvent for interrupt handling instead.
Many users would use this with an IoAbstraction, and that IS broken too, It's going to need some careful thought to work out how this will work.
For now, just change the class in taskmanagerio.h to look as follows while I think this through:
void attachInterrupt(pintype_t pin, RawIntHandler fn, uint8_t mode) override {
#if defined(ARDUINO_MBED_MODE)
::attachInterrupt(pin, fn, (PinStatus)mode);
#elif defined(PARTICLE)
::attachInterrupt(pin, fn, (InterruptMode)mode);
#elif defined(ARDUINO_ARCH_SAMD)
::attachInterrupt(pin, fn, (PinStatus)mode);
#else
::attachInterrupt(pin, fn, mode);
#endif // ARDUINO_MBED_MODE
}
};```
Found it, seems a breaking change was made in Arduino Core API. Luckily we can detect it easily enough. The change will be released later today.
As far as I can tell, this is a really bad change for genuine SAMD boards, I cannot imagine how many libraries have been broken by this change, I cannot even get Aunit to compile to run the unit tests! There's already an issue for it in the repo.
See https://github.com/arduino/ArduinoCore-samd/issues/587 where I've questioned some of the changes in this core.
I am testing a fix on master at the moment, it is difficult as even some quite core libraries such as AUnit that we use for unit testing don't work with this core!
There is a fix for this on master that is undergoing testing. I recommend for most users to revert their SAMD board to the 1.8.9 until I have fully tested the change on all boards.
We now support both variants of SAMD, core API and regular. Please re-open if it doesn't work for you in task manager.
Can not be compiled. I get the following error on SAMD21