Hi @RafalHalik,
From the Animation Image API for v8.3 (Animation Image (lv_animimg) — LVGL documentation), the function "lv_animimg_set_src()" only has 3 parameters:
EdwinHz_0-1711049940376.png
That said, code that GUI Guider generates adds a 4th parameter to this function as a 'reverse parameter':
EdwinHz_1-1711050316152.png
This allows GUI Guider to control the direction of flow of the animation with a simple switch:
EdwinHz_3-1711050426730.png
EdwinHz_4-1711050442117.png
Ironically, this extra parameter is not meant to be a bug, but rather a feature...
However, as I mentioned before, LVGL doesn't natively have this "feature". This can be proved by creating a project from scratch in MCUXpresso and adding the LVGL middleware afterwards. In other words, create an LVGL project outside of GUI Guider. Doing this resulted in a "lv_animimg_set_src()" function without the reverse feature, and followed the normal API description:
EdwinHz_5-1711050669138.png
In conclusion, the extra parameter is added by GUI Guider as a feature, but your Zephyr workspace probably already had the LVGL middleware with the "normal" 3 parameter lv_animimg_set_src() function rather than the 4 parameter one that GUI Guider generates. deleting this extra parameter is enough to have the example work, as you mention, but you could also just add the "reverse" if-else condition that GUI Guider creates for this function and this way any GUI Guider project that uses an animated image will work on your Zephyr workspace.
I hope this helps!
BR,
Edwin.