Freezes after updates
Rryabkov opened this issue · 5 comments
Hi, before the updates in December, the program worked fine and the effects were awesome. But when I programmed a new sketch, the LED tape began to stop at one color and freezes.
Maybe I need to turn off some effects?
Check carefully the program free memory size. The compiler can report some kind of warning if this value is low. Try to delete some animations declaration and the entrues in the animation array.
In my own version of this strip i have used 100 leds. And in my verssion if arduino ide i have changed the compiler optimization options to short the upload code.
Just delete some animations.
I downloaded the code in the Arduino mega and the memory problem was solved, but In animation "symRun" freezes. And I also removed animations "cToward" and "rToward". Only the first and last LEDs are on. :)
Sorry, i cannot reproduce the issue. I have selected "symRun", "cToward" and "rToward" animations only. Nothing hangs. On stm32 these animations are working smoothly also.
Hello!
If you configure the following options to your IDE, the compiled sketch can become smaller:
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC
Perhaps, -Os option is the most useful in the case. The compiler options should be changed in platform.local.txt file.
Also, you can delete some animations from the list at the end of main file:
animation* anims[] = {
&cWipe, &cWalk, &cCreep, &cRainbow, &cRainCycle, &cRainFull, &cWave, &lUp, &sRnd, &rFade,
&cCollEnd, &cRun, &cSeven, &mOne, &mWave, &cOne, &cFire, &cEvenOdd, &rFill, &cCollMdl,
&cBlend, &cSwing, &cSwingS, &cFlash, &sWave, &cWorms, &cInterf, &cToward, &rToward, &lHouse,
&cDrops, &wSeven, &fSeven, &sCreep, &symRun, &cRipe
};