Hi all, I tried to integrate the FastLED library into one of my ARM

Hi all,
I tried to integrate the FastLED library into one of my ARM GCC Eclipse project for the Nordic nRF51422 outside of the Arduino IDE.
After redefining the micros() and delay() functions from the Arduino and doing other some minor changes, I get a compilation error :
./m0clockless.h:311:8: error: impossible constraint in ‘asm’
This points to this line:
asm volatile (
// pre-load byte 0
LOADLEDS3(0) LOADDITHER7(0) DITHER5 SCALE4(0) ADJDITHER7(0) SWAPBBN1
M0_ASM_ARGS);

Does someone know what the problem can be?
Best regards

No idea - gcc can be quite vague in trying to chase down/figure out asm issues, because gcc and asm don’t really play well together. I don’t have any ideas for specific things to try - and fixing this would require me setting up a full eclipse install/setup for doing arm projects, and then tweaking things to see what does/doesn’t work with the compiler. Out of curiosity - what version of gcc are you using?

Ah ok I see
I am using :
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.2.1 20151202 (release) [ARM/embedded-5-branch revision 231848]
Well, I will try to identify which of these #defines in m0clockless.h generates this error…

Huh - I’ve done zero testing with gcc 5 - 4.8.3 and near there is what’s been tested the most.

Ah thanks for the info; if I don’t find the problem after some time, I will try to jump back to 4.8.3…

I just tried with versions 4.8.4 and and 5.4.1 but it did not change anything.
I guess I will have to debug that thing step by step…

I did not modify fastpin.h and fastpin_arm_nrf51.h.
There are only definitions for the teensy 3.0 in the fastpin_arm_nrf51.h
Should I modify something in these files?