Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile for Adafruit NRF52832 #919

Open
etmeister opened this issue Nov 13, 2019 · 1 comment
Open

Can't compile for Adafruit NRF52832 #919

etmeister opened this issue Nov 13, 2019 · 1 comment

Comments

@etmeister
Copy link

@etmeister etmeister commented Nov 13, 2019

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.

@etmeister

This comment has been minimized.

Copy link
Author

@etmeister etmeister commented Nov 13, 2019

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

#define NRF_P0_BASE   0x50000000UL
#define NRF_P1_BASE   0x50000300UL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.