Replies: 14 comments 17 replies
-
You could be running into an incompatibility w/the library and this RP2040 core, or a GCC compiler error. Can you give more of a snapshot of the logs before the If it's a GCC bug, you could try changing the optimization level as a low-effort option. Use the At a worst case, there is the Arduino MBED RP2040 core you could try if all else fails. They have a very different core and older GCC version last I checked which may not have the issue. |
Beta Was this translation helpful? Give feedback.
-
After just a quick look, only thing that is different is that you ommited the color order after the pin number, not sure if that causes problems. |
Beta Was this translation helpful? Give feedback.
-
I have an online firmware generator setup, This is for turning a Pi Pico into an ARGB LED Controller that works with SignalRGB's USB packets, so you can ignore most of the stuff and just focus on the FastLED settings in the generated INO: |
Beta Was this translation helpful? Give feedback.
-
I'm facing this issue too; using two strips with the same RGB_ORDER for the Pico W causes:
E.g. this compiles fine:
but all my strips are GRB, and this:
results in the above compilation Assembler messages. Any thoughts on how to move forward with this? |
Beta Was this translation helpful? Give feedback.
-
see https://github.com/Legion2/CorsairLightingProtocol/issues/346#issuecomment-1710347235, it helped with multiple led strips |
Beta Was this translation helpful? Give feedback.
-
UPDATE: As previously mentioned, I have installed the Arduino MBED RP2040 core and it corrects this problem. I'm now able to run multiple strips with my Adafruit RP2040 Scorpio using FastLED. Thanks for the discussion as it has led me to a solution. Hope that Earle can get his core updated to correct the issue. - Thanks |
Beta Was this translation helpful? Give feedback.
-
I'm weighing in with my experience too. I too found this same problem when doing multiple LED arrays. I am using a Raspberry Pi Pico, Arduino IDE 2.2.1, Raspberry Pi Pico/RP2040 3.6.3, FastLED 3.6.0. In my project, I have 6 arrays, and tried multiple combinations of types. I found that I could choose WS2811 and WS2812, but could not choose WS2812 and WS2812b. The MBED one does work for me, but I don't know how to implement dual core on it either, as I do want to make use of the 2nd core for some processing. Has there been any progress in understanding what the nature of the problem is? |
Beta Was this translation helpful? Give feedback.
-
@markthomascampbell How are you powering the Pi Pico and the LED strips? Maybe it's drawing too much current when you change the brightness, reducing the voltage fed to the Pico. |
Beta Was this translation helpful? Give feedback.
-
I have the same messages using a Pico, Arduino IDE 2.30, Fastled 3.6.0 with two WS2812b strips. Sometimes I get the same message when using only one strip too:
Edit: the workaround of setting the second strip as RGB, instead of GRB (as the first), does work. |
Beta Was this translation helpful? Give feedback.
-
One quick work around for 2 strips is to use separate code for the second strip in the other core processor since RP2040 has 2 cores. I've used the second core in a motor control program that needed to run 4 motors and could only handle 2 in the code. add void setup1() { // 2nd processor setup Doesn't solve the sei and cli issue but at least now it's just a warning |
Beta Was this translation helpful? Give feedback.
-
Wow. It's still a problem, and the MBED core works. |
Beta Was this translation helpful? Give feedback.
-
I don't fully understand this problem but experimented a bit to find a workable solution for the current needs of our project:
Omitting even just one point above leads to the compile error 🤯 |
Beta Was this translation helpful? Give feedback.
-
This is still an issue in the Arduino 2.3.2 I get this error 172 | # pragma message "Forcing software SPI - no hardware SPI for you!" But then, when I use the mbed core, it does compile! |
Beta Was this translation helpful? Give feedback.
-
I was also getting the "Error: invalid offset, value too big" error even when building for a single strip. I found setting FASTLED_RP2040_CLOCKLESS_M0_FALLBACK to zero before including FastLED.h solved the problem for me. See my comment for more details. Maybe this will resolve the issue with multiple strips as well? |
Beta Was this translation helpful? Give feedback.
-
With the following simple sketch, I get compile error in Arduino IDE (V2.1.1) when trying to set two or more pins with FastLED.addLeds, but no issues at all if set up with only one pin.
I've tried all the different ways for multi-strips with FastLED according to this page, but all give the same error as long as more than one pin is used:
"{standard input}: Assembler messages:
{standard input}:873: Error: invalid offset, value too big (0x0000049C)"
It's also not an issue when I select other boards not under this repository's list.
Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions