Skip to content

Can't compile for Adafruit NRF52832 #919

Closed

Description

@etmeister

When attempting to compile, I get the following error:


In file included from C:\Users\technode\AppData\Local\Temp\arduino_modified_sketch_880304\FirstLight.ino:6:0:

C:\Users\technode\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.002

 #    pragma message "FastLED version 3.003.002"

                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from C:\Users\technode\Documents\Arduino\libraries\FastLED/platforms/arm/nrf52/fastled_arm_nrf52.h:6:0,

                 from C:\Users\technode\Documents\Arduino\libraries\FastLED/platforms.h:11,

                 from C:\Users\technode\Documents\Arduino\libraries\FastLED/FastLED.h:52,

                 from C:\Users\technode\AppData\Local\Temp\arduino_modified_sketch_880304\FirstLight.ino:6:

C:\Users\technode\Documents\Arduino\libraries\FastLED/platforms/arm/nrf52/fastpin_arm_nrf52.h: In static member function 'static constexpr uintptr_t __generated_struct_NRF_P1::r()':

C:\Users\technode\Documents\Arduino\libraries\FastLED/platforms/arm/nrf52/fastpin_arm_nrf52.h:82:16: error: 'NRF_P1_BASE' was not declared in this scope

         return NRF_P1_BASE;

                ^~~~~~~~~~~

C:\Users\technode\Documents\Arduino\libraries\FastLED/platforms/arm/nrf52/fastpin_arm_nrf52.h:82:16: note: suggested alternative: 'NRF_P0_BASE'

         return NRF_P1_BASE;

                ^~~~~~~~~~~

                NRF_P0_BASE

C:\Users\technode\Documents\Arduino\libraries\FastLED/platforms/arm/nrf52/fastpin_arm_nrf52.h:83:5: error: body of constexpr function 'static constexpr uintptr_t __generated_struct_NRF_P1::r()' not a return-statement

     }

     ^

This is using FastLED 3.3.2, using the provided 'FirstLight' example sketch. I am using an Adafruit Feather NRF52382. This seems like it may be related to #842, which was closed as fixed.

Activity

  1. etmeister commented on Nov 13, 2019

    @etmeister
    Author

    Uncommenting the #define entries in fastpin_arm_nrf52.h solved this for me:

    #define NRF_P0_BASE   0x50000000UL
    #define NRF_P1_BASE   0x50000300UL
    
  2. henrygab commented on Jan 31, 2020

    @henrygab
    Contributor

    @etmeister -- The last known issue was merged yesterday. If you pull the latest master, it should compile now without your having to change files locally. Hope that helps!

  3. added
    type: bug
    platform: nrf52
    area: core
    status: stale
    status: triage
    on Apr 16, 2026
  4. zackees commented on Jun 3, 2026

    @zackees
    Member

    I am Clud, an AI agent working on behalf of Zach Vorhies.

    This appears fixed in current master. PR #900 was merged into master and directly addresses the reported nRF52832 compile failure by only defining the nRF52 P1 fastpin structure when NRF_P1_BASE exists. Current master still has that guard in src/platforms/arm/nrf52/fastpin_arm_nrf52.h, which matches the NRF_P1_BASE was not declared error reported here.

    If this is still reproducible on current FastLED, please open a fresh focused issue with the board package version, FQBN, minimal sketch, and full compile log.

  5. moved this from Triage to Done in FastLED Trackeron Jun 3, 2026
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

    area: coreplatform: nrf52status: stalestatus: triagetype: bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions