Skip to content

Arduino nano matter / MGM240s support #1750

Closed

Description

@incapable

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.

Activity

  1. zackees commented on Oct 9, 2024

    @zackees
    Member

    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?

  2. zackees commented on Oct 9, 2024

    @zackees
    Member

    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.

  3. zackees commented on Oct 9, 2024

    @zackees
    Member

    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)

  4. zackees commented on Oct 9, 2024

    @zackees
    Member

    Okay i was able to generate some sort of build and it did fail. Can you determine if this matches your expectations:

    platformio

    ; PlatformIO Project Configuration File
    ;
    ;   Build options: build flags, source filter
    ;   Upload options: custom upload port, speed and extra flags
    ;   Library options: dependencies, extra library storages
    ;   Advanced options: extra scripting
    ;
    ; Please visit documentation for the other options and examples
    ; https://docs.platformio.org/page/projectconf.html
    
    [env:hy_tinystm103tb]
    platform = ststm32
    board = hy_tinystm103tb
    framework = arduino
    build_flags = -fopt-info-all=optimization_report.txt
    extra_scripts = C:\Users\niteris\dev\fastled\pre:lib\ci\ci-flags.py
    

    Build error output:

    In file included from C:/Users/niteris/dev/fastled/.build/hy_tinystm103tb/src/Apa102.ino:3:
    lib\src/FastLED.h:827:2: warning: #warning "No pin/port mappings found, pin access will be slightly slower. See fastpin.h for info." [-Wcpp]
      827 | #warning "No pin/port mappings found, pin access will be slightly slower. See fastpin.h for info."
          |  ^~~~~~~
    In file included from lib\src/FastLED.h:81:
    lib\src/fastspi.h:163:23: note: '#pragma message: No hardware SPI pins defined.  All SPI access will default to bitbanged output'
      163 | #      pragma message "No hardware SPI pins defined.  All SPI access will default to bitbanged output"
          |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from lib\src/FastLED.h:64:
    lib\src/fastpin.h: In instantiation of 'class FastPin<1>':
    lib\src/fastspi_bitbang.h:27:49:   required from 'class AVRSoftwareSPIOutput<1, 2, 12>'
    lib\src/fastspi.h:40:7:   required from 'class SPIOutput<1, 2, 12>'
    lib\src/chipsets.h:327:6:   required from 'class APA102Controller<1, 2, RGB, 12, kFiveBitGammaCorrectionMode_Null, 0, 4278190080>'
    lib\src/FastLED.h:468:34:   required from 'CLEDController& CFastLED::addLeds(CRGB*, int, int) [with ESPIChipsets CHIPSET = APA102; unsigned char DATA_PIN = 1; unsigned char CLOCK_PIN = 2; EOrder RGB_ORDER = RGB]'
    C:/Users/niteris/dev/fastled/.build/hy_tinystm103tb/src/Apa102.ino:16:66:   required from here
    lib\src/fastpin.h:274:31: error: static assertion failed: Invalid pin specified
      274 |         static_assert(validpin(), "Invalid pin specified");
          |                       ~~~~~~~~^~
    lib\src/fastpin.h:274:31: note: 'FastPin<1>::validpin()' evaluates to false
    lib\src/fastpin.h: In instantiation of 'class FastPin<2>':
    lib\src/fastspi_bitbang.h:28:50:   required from 'class AVRSoftwareSPIOutput<1, 2, 12>'
    lib\src/fastspi.h:40:7:   required from 'class SPIOutput<1, 2, 12>'
    lib\src/chipsets.h:327:6:   required from 'class APA102Controller<1, 2, RGB, 12, kFiveBitGammaCorrectionMode_Null, 0, 4278190080>'
    lib\src/FastLED.h:468:34:   required from 'CLEDController& CFastLED::addLeds(CRGB*, int, int) [with ESPIChipsets CHIPSET = APA102; unsigned char DATA_PIN = 1; unsigned char CLOCK_PIN = 2; EOrder RGB_ORDER = RGB]'
    C:/Users/niteris/dev/fastled/.build/hy_tinystm103tb/src/Apa102.ino:16:66:   required from here
    lib\src/fastpin.h:274:31: error: static assertion failed: Invalid pin specified
    lib\src/fastpin.h:274:31: note: 'FastPin<2>::validpin()' evaluates to false
    Compiling .pio\build\hy_tinystm103tb\libca7\src\FastLED.cpp.o
    *** [.pio\build\hy_tinystm103tb\src\Apa102.ino.cpp.o] Error 1
    In file included from lib\src\FastLED.cpp:2:
    lib\src\FastLED.h:827:2: warning: #warning "No pin/port mappings found, pin access will be slightly slower. See fastpin.h for info." [-Wcpp]
      827 | #warning "No pin/port mappings found, pin access will be slightly slower. See fastpin.h for info."
    

    build_info.json

    {
        "hy_tinystm103tb": {
            "aliases": {
                "addr2line": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-addr2line.exe",
                "ar": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-ar.exe",
                "as": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-as.exe",
                "c++filt": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-c++filt.exe",
                "g++": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-g++.exe",
                "gcc": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-gcc.exe",
                "ld": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-ld.exe",
                "nm": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-nm.exe",
                "objcopy": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-objcopy.exe",
                "objdump": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-objdump.exe",
                "ranlib": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-ranlib.exe",
                "readelf": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-readelf.exe",
                "size": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-size.exe",
                "strip": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-strip.exe"
            },
            "build_type": "release",
            "cc_flags": [
                "-std=gnu17",
                "-fopt-info-all=optimization_report.txt",
                "-mcpu=cortex-m3",
                "-mthumb",
                "-Os",
                "-ffunction-sections",
                "-fdata-sections",
                "-nostdlib",
                "--param",
                "max-inline-insns-single=500"
            ],
            "cc_path": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-gcc.exe",
            "compiler_type": "gcc",
            "cxx_flags": [
                "-std=gnu++17",
                "-fno-threadsafe-statics",
                "-fno-rtti",
                "-fno-exceptions",
                "-fno-use-cxa-atexit",
                "-fopt-info-all=optimization_report.txt",
                "-mcpu=cortex-m3",
                "-mthumb",
                "-Os",
                "-ffunction-sections",
                "-fdata-sections",
                "-nostdlib",
                "--param",
                "max-inline-insns-single=500"
            ],
            "cxx_path": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-g++.exe",
            "defines": [
                "PLATFORMIO=60116",
                "STM32F1",
                "STM32F103xB",
                "STM32F1xx",
                "ARDUINO=10808",
                "ARDUINO_ARCH_STM32",
                "NDEBUG",
                "ARDUINO_HY_TINYSTM103TB",
                "BOARD_NAME=\"HY_TINYSTM103TB\"",
                "HAL_UART_MODULE_ENABLED",
                "USE_HAL_DRIVER",
                "USE_FULL_LL_DRIVER",
                "VARIANT_H=\"variant_HY_TINYSTM103TB.h\"",
                "BL_LEGACY_LEAF",
                "VECT_TAB_OFFSET=0x2000"
            ],
            "env_name": "hy_tinystm103tb",
            "extra": {
                "flash_images": []
            },
            "gdb_path": "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\bin\\arm-none-eabi-gdb.exe",
            "includes": {
                "build": [
                    "C:\\Users\\niteris\\dev\\fastled\\.build\\hy_tinystm103tb\\include",
                    "C:\\Users\\niteris\\dev\\fastled\\.build\\hy_tinystm103tb\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\cores\\arduino\\avr",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\cores\\arduino\\stm32",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\SrcWrapper\\inc",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\SrcWrapper\\inc\\LL",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\USBDevice\\inc",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\VirtIO\\inc",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\system\\Drivers\\STM32F1xx_HAL_Driver\\Inc",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\system\\Drivers\\STM32F1xx_HAL_Driver\\Src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\system\\STM32F1xx",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\system\\Middlewares\\ST\\STM32_USB_Device_Library\\Core\\Inc",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\system\\Middlewares\\ST\\STM32_USB_Device_Library\\Core\\Src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\system\\Middlewares\\OpenAMP",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\system\\Middlewares\\OpenAMP\\open-amp\\lib\\include",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\system\\Middlewares\\OpenAMP\\libmetal\\lib\\include",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\system\\Middlewares\\OpenAMP\\virtual_driver",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-cmsis\\CMSIS\\Core\\Include",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\system\\Drivers\\CMSIS\\Device\\ST\\STM32F1xx\\Include",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\system\\Drivers\\CMSIS\\Device\\ST\\STM32F1xx\\Source\\Templates\\gcc",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-cmsis\\CMSIS\\DSP\\Include",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-cmsis\\CMSIS\\DSP\\PrivateInclude",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\cores\\arduino",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\variants\\STM32F1xx\\F103T(8-B)U"
                ],
                "compatlib": [
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\CMSIS_DSP\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\EEPROM\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\IWatchdog\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\Keyboard\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\Mouse\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\RGB_LED_TLC59731\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\SPI\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\Servo\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\SoftwareSerial\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\SrcWrapper\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\SubGhz\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\USBDevice\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\VirtIO\\src",
                    "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\Wire\\src"
                ],
                "toolchain": [
                    "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\arm-none-eabi\\include\\c++\\12.3.1",
                    "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\arm-none-eabi\\include\\c++\\12.3.1\\arm-none-eabi",
                    "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\lib\\gcc\\arm-none-eabi\\12.3.1\\include",
                    "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\lib\\gcc\\arm-none-eabi\\12.3.1\\include-fixed",
                    "C:\\Users\\niteris\\.platformio\\packages\\toolchain-gccarmnoneeabi\\arm-none-eabi\\include"
                ]
            },
            "libsource_dirs": [
                "C:\\Users\\niteris\\dev\\fastled\\.build\\hy_tinystm103tb\\lib",
                "C:\\Users\\niteris\\dev\\fastled\\.build\\hy_tinystm103tb\\.pio\\libdeps\\hy_tinystm103tb",
                "C:\\Users\\niteris\\.platformio\\lib",
                "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries\\__cores__\\arduino",
                "C:\\Users\\niteris\\.platformio\\packages\\framework-arduinoststm32\\libraries"
            ],
            "prog_path": "C:\\Users\\niteris\\dev\\fastled\\.build\\hy_tinystm103tb\\.pio\\build\\hy_tinystm103tb\\firmware.elf",
            "svd_path": "C:\\Users\\niteris\\.platformio\\platforms\\ststm32\\misc\\svd\\STM32F103xx.svd",
            "targets": [
                {
                    "group": "Platform",
                    "name": "upload",
                    "title": "Upload"
                }
            ]
        }
    }
    
  5. zackees commented on Oct 9, 2024

    @zackees
    Member

    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"
                    },
  6. incapable commented on Oct 9, 2024

    @incapable
    Author

    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.

  7. zackees commented on Oct 10, 2024

    @zackees
    Member

    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.

    FASTLED_ALL_PINS_HARDWARE_SPI
    FASTLED_FORCE_SOFTWARE_PINS
    FASTLED_FORCE_SOFTWARE_SPI
  8. eMUQI commented on Oct 14, 2024

    @eMUQI

    HI, @zackees

    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.

    FASTLED_ALL_PINS_HARDWARE_SPI
    FASTLED_FORCE_SOFTWARE_PINS
    FASTLED_FORCE_SOFTWARE_SPI

    I tried adding each of the following lines, one at a time, before #include <FastLED.h>:

    #define FASTLED_ALL_PINS_HARDWARE_SPI
    #define FASTLED_FORCE_SOFTWARE_PINS
    #define FASTLED_FORCE_SOFTWARE_SPI
    

    Unfortunately, I encountered the same result as @incapable each time. Am I possibly misunderstanding their intended usage? Any clarification would be greatly appreciated!

  9. zackees commented on Oct 14, 2024

    @zackees
    Member

    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.

  10. zackees commented on Oct 29, 2024

    @zackees
    Member

    HI, @zackees

    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.

    FASTLED_ALL_PINS_HARDWARE_SPI
    FASTLED_FORCE_SOFTWARE_PINS
    FASTLED_FORCE_SOFTWARE_SPI

    I tried adding each of the following lines, one at a time, before #include <FastLED.h>:

    #define FASTLED_ALL_PINS_HARDWARE_SPI
    #define FASTLED_FORCE_SOFTWARE_PINS
    #define FASTLED_FORCE_SOFTWARE_SPI
    

    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.

  11. zackees commented on Jan 11, 2025

    @zackees
    Member
  12. per1234 commented on Sep 4, 2025

    @per1234
    Contributor

    @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.

  13. added a commit that references this issue on Sep 13, 2025
  14. zackees commented on Sep 13, 2025

    @zackees
    Member

    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.

  15. per1234 commented on Sep 13, 2025

    @per1234
    Contributor

    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):

    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; }
          |                ^~~~~~
    

    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:

    * Compatible with Arduino framework and Matter/Thread wireless protocols

  16. zackees commented on Sep 13, 2025

    @zackees
    Member

    You got me

  17. added a commit that references this issue on Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions