You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to compile after including the fastled library, the following error is shown:
"This platform isn't recognized by FastLED... yet. See comments in FastLED/led_sysdefs.h for options."
The led_sysdefs.h indeed does not appear to specify the Silicon Labs MGM240s chip that's used for the Arduino nano matter (preview) board.
And so here's the request to, if at all possible, get support for this board/chip.
Once we have a platformio.ini then I can put it into the test infrastructure and get a whole bunch of information about it and adding support will either be really easy or hard, depending on existing support that we have for this family type. It could be as easy sprinkling a few defines here or there to map in the pin definitions.
Ok that's a lot of info, I'm really new to the arduino ecosystem so forgive me for lacking some knowledge, but I'll help where I can.
As i said, Fastled fails fast on a compatible board check, that's how far i got with that.
At this point I'm still developing in the Arduino IDE, getting to know the platform, but i did encounter the platform.io libraries where i got roughly the same results you did.
Confirmed the support is for arduino only.
You mean just the Arduino IDE environment here?
Is there anything specific I can run/find out for you?
I'm aware it's technically a preview board and third party support might be a bit troubling.
Here's the problem. Arduino hides all this information from you and you are going to have to look really deep to figure out what it's doing.
On the plus side, Arduino supports your board and platformio does not, which means we are flying blind here.
I would normally recommend you use Platformio + VS Code to do your development, but you won't be able to hit the compile button and get it to work. However, VS code is a much better code editor and seems pretty smart at right clock to follow a symbol, which Arduino does not. And when I started using both my productivity skyrocketed.
Anyway, I'll keep an eye out for pull request for a fix. I'm sorry your board doesn't work out of the box. But it's likely that some combination of defines will get it at least working. Good luck, happy coding and check back with us if you have a revelation on what is going on.
Could you please clarify how to use these defines?
Anyway, I'll keep an eye out for pull request for a fix. I'm sorry your board doesn't work out of the box. But it's likely that some combination of defines will get it at least working. Good luck, happy coding and check back with us if you have a revelation on what is going on.
Unfortunately, I encountered the same result as @incapable each time. Am I possibly misunderstanding their intended usage? Any clarification would be greatly appreciated!
Unfortunately our build system for testing platforms is platformio and this board is not supported by them nor have the makers provided a boards.json or platformio.ini file to make it work.
I attempted to make this myself but there is so little information out there that i came up empty handed.
So unfortunately I am going to have to wait until such a configuration becomes available. Then the support process can begin.
Could you please clarify how to use these defines?
Anyway, I'll keep an eye out for pull request for a fix. I'm sorry your board doesn't work out of the box. But it's likely that some combination of defines will get it at least working. Good luck, happy coding and check back with us if you have a revelation on what is going on.
Unfortunately, I encountered the same result as @incapable each time. Am I possibly misunderstanding their intended usage? Any clarification would be greatly appreciated!
Because SPI uses specialized hardware, there are only one or few channels available on mcus. If you don't set the right pins then FastLED will refuse to compile.
These defines are used to get around that and force FastLED to accept either all pins as hardware, regardless of whether they are or not, or to use software bitbanging which is much slower.
@zackees you closed this as "completed", but as far as I can tell the requested support for the Nano Matter board was never added. This makes me think the issue was closed by accident. Please review and reopen the issue if it was not intended to be closed.
If the determination was to not add support for this board, that is understandable, but it would be helpful to have a clear statement to that effect so that the users aren't misled into thinking that the library should be compatible with the board.
Thanks @zackees! I don't have a Nano Matter board, so I'm unable to test runtime functionality, but I did try a quick "smoke test" by compiling the library for that target. I encountered an error and submitted a fix for that:
In file included from c:\Users\per\Documents\Arduino\libraries\FastLED\src/FastLED.h:83:
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:112:18: error: 'RwReg' does not name a type
112 | volatile RwReg *mPort; ///< Output register for the pin
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:113:18: error: 'RoReg' does not name a type
113 | volatile RoReg *mInPort; ///< Input register for the pin
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:114:9: error: 'RwReg' does not name a type
114 | RwReg mPinMask; ///< Bitmask for the pin within its register
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:133:26: error: 'RwReg' does not name a type
133 | typedef volatile RwReg * port_ptr_t; ///< type for a pin read/write register, volatile
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:134:17: error: 'RwReg' does not name a type
134 | typedef RwReg port_t; ///< type for a pin read/write register, non-volatile
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:160:41: error: 'port_ptr_t' has not been declared
160 | inline void hi(FASTLED_REGISTER port_ptr_t port) __attribute__ ((always_inline)) { *port |= mPinMask; }
| ^~~~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:163:41: error: 'port_ptr_t' has not been declared
163 | inline void lo(FASTLED_REGISTER port_ptr_t port) __attribute__ ((always_inline)) { *port &= ~mPinMask; }
| ^~~~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:167:42: error: 'port_t' has not been declared
167 | inline void set(FASTLED_REGISTER port_t val) __attribute__ ((always_inline)) { *mPort = val; }
| ^~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:172:46: error: 'port_ptr_t' has not been declared
172 | inline void fastset(FASTLED_REGISTER port_ptr_t port, FASTLED_REGISTER port_t val) __attribute__ ((always_inline)) { *port = val; }
| ^~~~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:172:80: error: 'port_t' has not been declared
172 | inline void fastset(FASTLED_REGISTER port_ptr_t port, FASTLED_REGISTER port_t val) __attribute__ ((always_inline)) { *port = val; }
| ^~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:175:9: error: 'port_t' does not name a type
175 | port_t hival() __attribute__ ((always_inline)) { return *mPort | mPinMask; }
| ^~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:177:9: error: 'port_t' does not name a type
177 | port_t loval() __attribute__ ((always_inline)) { return *mPort & ~mPinMask; }
| ^~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:179:9: error: 'port_ptr_t' does not name a type
179 | port_ptr_t port() __attribute__ ((always_inline)) { return mPort; }
| ^~~~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:181:9: error: 'port_t' does not name a type
181 | port_t mask() __attribute__ ((always_inline)) { return mPinMask; }
| ^~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h: In member function 'void Pin::_init()':
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:120:17: error: 'mPinMask' was not declared in this scope
120 | mPinMask = digitalPinToBitMask(mPin);
| ^~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:120:28: error: 'digitalPinToBitMask' was not declared in this scope
120 | mPinMask = digitalPinToBitMask(mPin);
| ^~~~~~~~~~~~~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:121:17: error: 'mPort' was not declared in this scope
121 | mPort = (volatile RwReg*)portOutputRegister(digitalPinToPort(mPin));
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:121:35: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
121 | mPort = (volatile RwReg*)portOutputRegister(digitalPinToPort(mPin));
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:121:26: error: expected primary-expression before 'volatile'
121 | mPort = (volatile RwReg*)portOutputRegister(digitalPinToPort(mPin));
| ^~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:121:26: error: expected ')' before 'volatile'
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:121:25: note: to match this '('
121 | mPort = (volatile RwReg*)portOutputRegister(digitalPinToPort(mPin));
| ^
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:122:17: error: 'mInPort' was not declared in this scope
122 | mInPort = (volatile RoReg*)portInputRegister(digitalPinToPort(mPin));
| ^~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:122:37: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
122 | mInPort = (volatile RoReg*)portInputRegister(digitalPinToPort(mPin));
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:122:28: error: expected primary-expression before 'volatile'
122 | mInPort = (volatile RoReg*)portInputRegister(digitalPinToPort(mPin));
| ^~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:122:28: error: expected ')' before 'volatile'
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:122:27: note: to match this '('
122 | mInPort = (volatile RoReg*)portInputRegister(digitalPinToPort(mPin));
| ^
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h: In member function 'void Pin::hi()':
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:147:61: error: 'mPort' was not declared in this scope
147 | inline void hi() __attribute__ ((always_inline)) { *mPort |= mPinMask; }
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:147:70: error: 'mPinMask' was not declared in this scope
147 | inline void hi() __attribute__ ((always_inline)) { *mPort |= mPinMask; }
| ^~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h: In member function 'void Pin::lo()':
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:149:61: error: 'mPort' was not declared in this scope
149 | inline void lo() __attribute__ ((always_inline)) { *mPort &= ~mPinMask; }
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:149:71: error: 'mPinMask' was not declared in this scope
149 | inline void lo() __attribute__ ((always_inline)) { *mPort &= ~mPinMask; }
| ^~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h: In member function 'void Pin::toggle()':
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:156:65: error: 'mInPort' was not declared in this scope
156 | inline void toggle() __attribute__ ((always_inline)) { *mInPort = mPinMask; }
| ^~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:156:75: error: 'mPinMask' was not declared in this scope
156 | inline void toggle() __attribute__ ((always_inline)) { *mInPort = mPinMask; }
| ^~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h: In member function 'void Pin::hi(int)':
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:160:92: error: invalid type argument of unary '*' (have 'int')
160 | inline void hi(FASTLED_REGISTER port_ptr_t port) __attribute__ ((always_inline)) { *port |= mPinMask; }
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:160:101: error: 'mPinMask' was not declared in this scope
160 | inline void hi(FASTLED_REGISTER port_ptr_t port) __attribute__ ((always_inline)) { *port |= mPinMask; }
| ^~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h: In member function 'void Pin::lo(int)':
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:163:92: error: invalid type argument of unary '*' (have 'int')
163 | inline void lo(FASTLED_REGISTER port_ptr_t port) __attribute__ ((always_inline)) { *port &= ~mPinMask; }
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:163:102: error: 'mPinMask' was not declared in this scope
163 | inline void lo(FASTLED_REGISTER port_ptr_t port) __attribute__ ((always_inline)) { *port &= ~mPinMask; }
| ^~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h: In member function 'void Pin::set(int)':
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:167:89: error: 'mPort' was not declared in this scope
167 | inline void set(FASTLED_REGISTER port_t val) __attribute__ ((always_inline)) { *mPort = val; }
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h: In member function 'void Pin::fastset(int, int)':
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:172:126: error: invalid type argument of unary '*' (have 'int')
172 | inline void fastset(FASTLED_REGISTER port_ptr_t port, FASTLED_REGISTER port_t val) __attribute__ ((always_inline)) { *port = val; }
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h: In member function 'virtual bool Pin::isSelected()':
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:188:55: error: 'mPort' was not declared in this scope
188 | virtual bool isSelected() override { return (*mPort & mPinMask) == mPinMask; }
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:188:63: error: 'mPinMask' was not declared in this scope
188 | virtual bool isSelected() override { return (*mPort & mPinMask) == mPinMask; }
| ^~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h: At global scope:
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:373:26: error: 'RwReg' does not name a type
373 | typedef volatile RwReg * port_ptr_t; ///< @copydoc Pin::port_ptr_t
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:374:17: error: 'RwReg' does not name a type
374 | typedef RwReg port_t; ///< @copydoc Pin::port_t
| ^~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:393:48: error: 'port_ptr_t' has not been declared
393 | inline static void hi(FASTLED_REGISTER port_ptr_t port) __attribute__ ((always_inline)) {
| ^~~~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:397:48: error: 'port_ptr_t' has not been declared
397 | inline static void lo(FASTLED_REGISTER port_ptr_t port) __attribute__ ((always_inline)) {
| ^~~~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:401:49: error: 'port_t' has not been declared
401 | inline static void set(FASTLED_REGISTER port_t val) __attribute__ ((always_inline)) {
| ^~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:406:53: error: 'port_ptr_t' has not been declared
406 | inline static void fastset(FASTLED_REGISTER port_ptr_t port, FASTLED_REGISTER port_t val) __attribute__ ((always_inline)) {
| ^~~~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:406:87: error: 'port_t' has not been declared
406 | inline static void fastset(FASTLED_REGISTER port_ptr_t port, FASTLED_REGISTER port_t val) __attribute__ ((always_inline)) {
| ^~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:412:16: error: 'port_t' does not name a type
412 | static port_t hival() __attribute__ ((always_inline)) { return 0; }
| ^~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:414:16: error: 'port_t' does not name a type
414 | static port_t loval() __attribute__ ((always_inline)) { return 0;}
| ^~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:416:16: error: 'port_ptr_t' does not name a type
416 | static port_ptr_t port() __attribute__ ((always_inline)) { return NULL; }
| ^~~~~~~~~~
c:\Users\per\Documents\Arduino\libraries\FastLED\src/fastpin.h:418:16: error: 'port_t' does not name a type
418 | static port_t mask() __attribute__ ((always_inline)) { return 0; }
| ^~~~~~
Activity
zackees commentedon Oct 9, 2024
I see that platformio supports this board a little bit:
https://github.com/platformio/platform-siliconlabsefm32
Do you happen to have platformio.ini configuration sitting around for this?
zackees commentedon Oct 9, 2024
Once we have a platformio.ini then I can put it into the test infrastructure and get a whole bunch of information about it and adding support will either be really easy or hard, depending on existing support that we have for this family type. It could be as easy sprinkling a few defines here or there to map in the pin definitions.
zackees commentedon Oct 9, 2024
Yeah it's starting to look like a no right now. If we can't get it into platformio then we can't even compile it.
How are you compiling this board?
SiliconLabsSoftware/arduino#52 (comment)
zackees commentedon Oct 9, 2024
Okay i was able to generate some sort of build and it did fail. Can you determine if this matches your expectations:
platformio
Build error output:
build_info.json
zackees commentedon Oct 9, 2024
Confirmed the support is for arduino only.
Here is the package information for this board:
https://siliconlabs.github.io/arduino/package_arduinosilabs_index.json
And this is the relevant snippets:
{ "category": "Silicon Labs", "name": "Silicon Labs", "url": "https://github.com/SiliconLabs/arduino/releases/download/2.0.0/silabs_arduino_core-2.0.0.zst", "version": "2.0.0", "architecture": "silabs", "archiveFileName": "silabs_arduino_core-2.0.0.zst", "boards": [ { "name": "Arduino Nano Matter" }, { "name": "SparkFun Thing Plus Matter" }, { "name": "xG24 Explorer Kit" }, { "name": "xG24 Dev Kit" }, { "name": "xG27 Dev Kit" }, { "name": "BGM220 Explorer Kit" } ], "toolsDependencies": [ { "packager": "SiliconLabs", "version": "12.2.rel1", "name": "gcc-arm-none-eabi" }, { "packager": "SiliconLabs", "version": "1.16.4", "name": "simplicitycommander" }, { "packager": "SiliconLabs", "version": "0.12.0-arduino1-static", "name": "openocd" } ], "help": { "online": "https://github.com/SiliconLabs/arduino" }, "size": 320160894, "checksum": "SHA-256:75b9690f628cd9334c055ddb02ad559236732f3997ef59c87e833698830f19c7" },incapable commentedon Oct 9, 2024
Ok that's a lot of info, I'm really new to the arduino ecosystem so forgive me for lacking some knowledge, but I'll help where I can.
As i said, Fastled fails fast on a compatible board check, that's how far i got with that.
At this point I'm still developing in the Arduino IDE, getting to know the platform, but i did encounter the platform.io libraries where i got roughly the same results you did.
Is there anything specific I can run/find out for you?
I'm aware it's technically a preview board and third party support might be a bit troubling.
zackees commentedon Oct 10, 2024
Here's the problem. Arduino hides all this information from you and you are going to have to look really deep to figure out what it's doing.
On the plus side, Arduino supports your board and platformio does not, which means we are flying blind here.
I would normally recommend you use Platformio + VS Code to do your development, but you won't be able to hit the compile button and get it to work. However, VS code is a much better code editor and seems pretty smart at right clock to follow a symbol, which Arduino does not. And when I started using both my productivity skyrocketed.
Anyway, I'll keep an eye out for pull request for a fix. I'm sorry your board doesn't work out of the box. But it's likely that some combination of defines will get it at least working. Good luck, happy coding and check back with us if you have a revelation on what is going on.
eMUQI commentedon Oct 14, 2024
HI, @zackees
Could you please clarify how to use these defines?
I tried adding each of the following lines, one at a time, before
#include <FastLED.h>:Unfortunately, I encountered the same result as @incapable each time. Am I possibly misunderstanding their intended usage? Any clarification would be greatly appreciated!
zackees commentedon Oct 14, 2024
That's the correct way to do it.
Unfortunately our build system for testing platforms is platformio and this board is not supported by them nor have the makers provided a boards.json or platformio.ini file to make it work.
I attempted to make this myself but there is so little information out there that i came up empty handed.
So unfortunately I am going to have to wait until such a configuration becomes available. Then the support process can begin.
zackees commentedon Oct 29, 2024
Because SPI uses specialized hardware, there are only one or few channels available on mcus. If you don't set the right pins then FastLED will refuse to compile.
These defines are used to get around that and force FastLED to accept either all pins as hardware, regardless of whether they are or not, or to use software bitbanging which is much slower.
zackees commentedon Jan 11, 2025
Update: looks like nano_every might be supported now:
https://community.platformio.org/t/support-for-arduino-nano-matter/44951/10
per1234 commentedon Sep 4, 2025
@zackees you closed this as "completed", but as far as I can tell the requested support for the Nano Matter board was never added. This makes me think the issue was closed by accident. Please review and reopen the issue if it was not intended to be closed.
If the determination was to not add support for this board, that is understandable, but it would be helpful to have a clear statement to that effect so that the users aren't misled into thinking that the library should be compatible with the board.
impliment feature request in #1750
zackees commentedon Sep 13, 2025
Implemented in bac25ca
It's mostly vibe coded in with claude, no idea if it works. please test it and if it's not working, re-open bug.
per1234 commentedon Sep 13, 2025
Thanks @zackees! I don't have a Nano Matter board, so I'm unable to test runtime functionality, but I did try a quick "smoke test" by compiling the library for that target. I encountered an error and submitted a fix for that:
#2081
However, even after that fix, the library fails to compile for Nano Matter when using Arduino IDE and the latest version of the "Silicon Labs" Arduino boards platform (https://github.com/SiliconLabs/arduino):
Perhaps it is working with the platformio/siliconlabsefm32 PlatformIO platform (I don't use PlatformIO so I didn't check), but the result I got seems to at least contradict the claim:
FastLED/release_notes.md
Line 17 in 2dc44aa
zackees commentedon Sep 13, 2025
You got me
fixes #1750