Hi guys, I'm having an issue with the CPT custom palettes and the new

Hi guys,

I’m having an issue with the CPT custom palettes and the new DEFINE_GRADIENT_PALETTE.

I’m on ARM adafruit feather m0 (which doesn’t support PROGMEM - just puts whatever is const in flash).

After defining a custom palette with similar code to the awesome ColorWavesWithPalettes, this causes to crash the board:
CRGBPalette16 gTargetGradientPalette = gGradientPalettes[0]

(see GradientPalettes array as defined here: https://gist.github.com/kriegsman/8281905786e8b2632aeb)

Any idea what could be the problem?
If I replace the line above with:
CRGBPalette16 gTargetGradientPalette (CRGB::Black), everything works fine.

Where is the line exactly - inside a function/method, or outside of one? If its the later, try simply declaring the variable, and then assign it within setup().

Tried that, unfortunately didn’t help. Clearly showed that the board crashes at this line though.