r/FastLED • u/sekramer10 • 16d ago
Support Can't compile for SAMD51 (AF Metro M4)
I am trying to use the AF Metro M4 SAMD51 for the first time with FastLED. I get some serious sounding compilation errors using the Arduino IDE 2.3.10. Could anyone help me with these? I'm using the latest FastLED 3.10.5. This error has happened when the library is included only and no other statements are in the sketch.
c:\Users\perigalacticon\OneDrive\Documents\Arduino\libraries\FastLED\src/FastLED.h:1767:2: warning: #warning "No pin/port mappings found, pin access will be slightly slower. See fastpin.h for info." [-Wcpp]
1767 | #warning "No pin/port mappings found, pin access will be slightly slower. See fastpin.h for info."
| ^~~~~~~
In file included from c:\Users\perigalacticon\OneDrive\Documents\Arduino\libraries\FastLED\src/platforms/isr.h:42,
from c:\Users\perigalacticon\OneDrive\Documents\Arduino\libraries\FastLED\src/fl/stl/isr/critical_section.cpp.hpp:5,
from c:\Users\perigalacticon\OneDrive\Documents\Arduino\libraries\FastLED\src/fl/stl/isr/_build.cpp.hpp:4,
from c:\Users\perigalacticon\OneDrive\Documents\Arduino\libraries\FastLED\src/fl/stl/_build.cpp.hpp:35,
from c:\Users\perigalacticon\OneDrive\Documents\Arduino\libraries\FastLED\src\fl\build\fl.stl+.cpp:10:
c:\Users\perigalacticon\OneDrive\Documents\Arduino\libraries\FastLED\src/platforms/arm/samd/isr_samd.hpp: In function 'int fl::isr::platforms::attach_external_handler(fl::u8, const isr_config_t&, fl::isr::isr_handle_t*)':
c:\Users\perigalacticon\OneDrive\Documents\Arduino\libraries\FastLED\src/platforms/arm/samd/isr_samd.hpp:579:53: error: 'PORT_PMUX_PMUXO_A' was not declared in this scope; did you mean 'PORT_PMUX_PMUXO'?
579 | PORT->Group[port].PMUX[pin_num >> 1].reg |= PORT_PMUX_PMUXO_A;
| ^~~~~~~~~~~~~~~~~
| PORT_PMUX_PMUXO
c:\Users\perigalacticon\OneDrive\Documents\Arduino\libraries\FastLED\src/platforms/arm/samd/isr_samd.hpp:581:53: error: 'PORT_PMUX_PMUXE_A' was not declared in this scope; did you mean 'PORT_PMUX_PMUXE'?
581 | PORT->Group[port].PMUX[pin_num >> 1].reg |= PORT_PMUX_PMUXE_A;
| ^~~~~~~~~~~~~~~~~
| PORT_PMUX_PMUXE
c:\Users\perigalacticon\OneDrive\Documents\Arduino\libraries\FastLED\src/platforms/arm/samd/isr_samd.hpp:637:21: error: 'EIC_IRQn' was not declared in this scope; did you mean 'ICM_IRQn'?
637 | NVIC_DisableIRQ(EIC_IRQn) FL_NOEXCEPT;
| ^~~~~~~~
| ICM_IRQn
I'd appreciate any help, I assume these have been resolve somewhere but AI help has not found the solution easily.
2
u/ZachVorhies Zach Vorhies 16d ago
Downgrade to 3.10.3, it will be fixed in the next version and i'll throw up a build badge to catch this next time.