Hi everyone, i previously post a thread asking for help setting up the TFT_eSPI library to be able to use the LVGL library. I set it up correctly and now it is perfectly working. So I moved to the LVGL. After fallowing the simple steps for the set up that you can se here i tried to compile and load on my T4.1 the example LVGL_Arduino. Later i will download the lv_example library and try that one too. The problem is that it doesn't even compile because "fsl_cache.h" is not found on ...Documents\Arduino\libraries\lvgl\src\draw\nxp\pxp/lv_gpu_nxp_pxp.h . I took a look at lv_gpu_nxp_pxp.h and here's what I found:
So it includes fls_cache.h only if LV_USE_GPU_NXP_PXP is set. That is on User_setup.h, as you can see below.
I'll be onest, i don't quite cach what it does (so big thank you if you can explain it to me), but seems to me that i can choose to set LV_USE_GPU_NXP_PXP or not. In fact, if I set it to 0, i don't get the fsl_cache.h error, but instead i get this:
Did anyone had the same problem? Can you help me figure it out?
Thaks to anyone made it 'till here, and to who didn't
Code:
#include "../../../lv_conf_internal.h"
#if LV_USE_GPU_NXP_PXP
#include "fsl_cache.h"
#include "fsl_pxp.h"
#include "../../../misc/lv_log.h"
So it includes fls_cache.h only if LV_USE_GPU_NXP_PXP is set. That is on User_setup.h, as you can see below.
Code:
/*Use NXP's PXP GPU iMX RTxxx platforms*/
#define LV_USE_GPU_NXP_PXP 1
#if LV_USE_GPU_NXP_PXP
/*1: Add default bare metal and FreeRTOS interrupt handling routines for PXP (lv_gpu_nxp_pxp_osa.c)
* and call lv_gpu_nxp_pxp_init() automatically during lv_init(). Note that symbol SDK_OS_FREE_RTOS
* has to be defined in order to use FreeRTOS OSA, otherwise bare-metal implementation is selected.
*0: lv_gpu_nxp_pxp_init() has to be called manually before lv_init()
*/
#define LV_USE_GPU_NXP_PXP_AUTO_INIT 0
#endif
I'll be onest, i don't quite cach what it does (so big thank you if you can explain it to me), but seems to me that i can choose to set LV_USE_GPU_NXP_PXP or not. In fact, if I set it to 0, i don't get the fsl_cache.h error, but instead i get this:
Code:
In file included from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\examples\arduino\LVGL_Arduino\LVGL_Arduino.ino:2:0:
C:\Program Files (x86)\Arduino\libraries\TFT_eSPI-master/TFT_eSPI.h:63:0: warning: "PROGMEM" redefined
#define PROGMEM
^
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/WProgram.h:41:0,
from C:\Users\GIUSEP~1\AppData\Local\Temp\arduino_build_157409\pch\Arduino.h:6:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/avr/pgmspace.h:30:0: note: this is the location of the previous definition
#define PROGMEM __attribute__((section(".progmem")))
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src/lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\examples\arduino\LVGL_Arduino\LVGL_Arduino.ino:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\examples\arduino\LVGL_Arduino\LVGL_Arduino.ino:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
In file included from C:\Program Files (x86)\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:17:0:
C:\Program Files (x86)\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.h:63:0: warning: "PROGMEM" redefined
#define PROGMEM
^
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/WProgram.h:41:0,
from C:\Users\GIUSEP~1\AppData\Local\Temp\arduino_build_157409/pch/Arduino.h:6,
from C:\Program Files (x86)\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.h:30,
from C:\Program Files (x86)\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:17:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/avr/pgmspace.h:30:0: note: this is the location of the previous definition
#define PROGMEM __attribute__((section(".progmem")))
^
In file included from C:\Program Files (x86)\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:5557:0:
C:\Program Files (x86)\Arduino\libraries\TFT_eSPI-master\Extensions/Sprite.cpp: In member function 'void TFT_eSprite::scroll(int16_t, int16_t)':
C:\Program Files (x86)\Arduino\libraries\TFT_eSPI-master\Extensions/Sprite.cpp:1425:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (abs(dx) >= _sw || abs(dy) >= _sh)
^
C:\Program Files (x86)\Arduino\libraries\TFT_eSPI-master\Extensions/Sprite.cpp:1425:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (abs(dx) >= _sw || abs(dy) >= _sh)
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\lv_demo_benchmark.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\lv_demo_benchmark.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\img_benchmark_cogwheel_rgb.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\img_benchmark_cogwheel_rgb.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\img_benchmark_cogwheel_indexed16.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\img_benchmark_cogwheel_indexed16.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\lv_font_montserrat_12_compr_az.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\lv_font_montserrat_12_compr_az.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\img_benchmark_cogwheel_alpha16.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\img_benchmark_cogwheel_alpha16.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\lv_font_montserrat_28_compr_az.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\lv_font_montserrat_28_compr_az.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\img_benchmark_cogwheel_chroma_keyed.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\img_benchmark_cogwheel_chroma_keyed.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\img_benchmark_cogwheel_argb.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\img_benchmark_cogwheel_argb.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\lv_font_montserrat_16_compr_az.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_benchmark\assets\lv_font_montserrat_16_compr_az.c:1:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_keypad_encoder\lv_demo_keypad_encoder.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\src\lv_demo.h:17,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_keypad_encoder\lv_demo_keypad_encoder.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:49:0,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_list.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_list.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_demo_conf.h:47:0: warning: "LV_USE_DEMO_MUSIC" redefined
#define LV_USE_DEMO_MUSIC 1
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:41:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/misc/lv_log.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:25,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_list.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_list.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lv_conf.h:746:0: note: this is the location of the previous definition
#define LV_USE_DEMO_MUSIC 0
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_list.c: In function '_lv_demo_music_list_create':
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_list.c:59:19: error: 'lv_font_montserrat_12' undeclared (first use in this function)
font_small = &lv_font_montserrat_12;
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_list.c:59:19: note: each undeclared identifier is reported only once for each function it appears in
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_list.c:60:20: error: 'lv_font_montserrat_16' undeclared (first use in this function)
font_medium = &lv_font_montserrat_16;
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_list.c: In function 'add_list_btn':
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_list.c:157:37: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
lv_snprintf(time, sizeof(time), "%d:%02d", t / 60, t % 60);
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_list.c:157:37: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c: In function '_lv_demo_music_main_create':
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:111:19: error: 'lv_font_montserrat_12' undeclared (first use in this function)
font_small = &lv_font_montserrat_12;
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:111:19: note: each undeclared identifier is reported only once for each function it appears in
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:112:19: error: 'lv_font_montserrat_16' undeclared (first use in this function)
font_large = &lv_font_montserrat_16;
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c: In function 'spectrum_draw_event_cb':
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:820:29: warning: passing argument 1 of 'lv_draw_polygon' from incompatible pointer type [-Wincompatible-pointer-types]
lv_draw_polygon(poly, 4, clip_area, &draw_dsc);
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw.h:27:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal_disp.h:21,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:33,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw_triangle.h:30:6: note: expected 'struct _lv_draw_ctx_t *' but argument is of type 'lv_point_t * {aka struct <anonymous> *}'
void lv_draw_polygon(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_point_t points[],
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:820:35: warning: passing argument 2 of 'lv_draw_polygon' makes pointer from integer without a cast [-Wint-conversion]
lv_draw_polygon(poly, 4, clip_area, &draw_dsc);
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw.h:27:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal_disp.h:21,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:33,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw_triangle.h:30:6: note: expected 'const lv_draw_rect_dsc_t * {aka const struct <anonymous> *}' but argument is of type 'int'
void lv_draw_polygon(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_point_t points[],
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:820:38: warning: passing argument 3 of 'lv_draw_polygon' from incompatible pointer type [-Wincompatible-pointer-types]
lv_draw_polygon(poly, 4, clip_area, &draw_dsc);
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw.h:27:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal_disp.h:21,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:33,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw_triangle.h:30:6: note: expected 'const lv_point_t * {aka const struct <anonymous> *}' but argument is of type 'const lv_area_t * {aka const struct <anonymous> *}'
void lv_draw_polygon(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_point_t points[],
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:820:49: warning: passing argument 4 of 'lv_draw_polygon' makes integer from pointer without a cast [-Wint-conversion]
lv_draw_polygon(poly, 4, clip_area, &draw_dsc);
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw.h:27:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal_disp.h:21,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:33,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw_triangle.h:30:6: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'lv_draw_rect_dsc_t * {aka struct <anonymous> *}'
void lv_draw_polygon(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_point_t points[],
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:826:29: warning: passing argument 1 of 'lv_draw_polygon' from incompatible pointer type [-Wincompatible-pointer-types]
lv_draw_polygon(poly, 4, clip_area, &draw_dsc);
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw.h:27:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal_disp.h:21,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:33,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw_triangle.h:30:6: note: expected 'struct _lv_draw_ctx_t *' but argument is of type 'lv_point_t * {aka struct <anonymous> *}'
void lv_draw_polygon(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_point_t points[],
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:826:35: warning: passing argument 2 of 'lv_draw_polygon' makes pointer from integer without a cast [-Wint-conversion]
lv_draw_polygon(poly, 4, clip_area, &draw_dsc);
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw.h:27:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal_disp.h:21,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:33,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw_triangle.h:30:6: note: expected 'const lv_draw_rect_dsc_t * {aka const struct <anonymous> *}' but argument is of type 'int'
void lv_draw_polygon(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_point_t points[],
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:826:38: warning: passing argument 3 of 'lv_draw_polygon' from incompatible pointer type [-Wincompatible-pointer-types]
lv_draw_polygon(poly, 4, clip_area, &draw_dsc);
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw.h:27:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal_disp.h:21,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:33,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw_triangle.h:30:6: note: expected 'const lv_point_t * {aka const struct <anonymous> *}' but argument is of type 'const lv_area_t * {aka const struct <anonymous> *}'
void lv_draw_polygon(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_point_t points[],
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:826:49: warning: passing argument 4 of 'lv_draw_polygon' makes integer from pointer without a cast [-Wint-conversion]
lv_draw_polygon(poly, 4, clip_area, &draw_dsc);
^
In file included from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw.h:27:0,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal_disp.h:21,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src/hal/lv_hal.h:16,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\lvgl.h:33,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
from c:\users\giuseppe trainiti\documents\arduino\libraries\lv_examples\lv_demo.h:35,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.h:16,
from C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:9:
c:\users\giuseppe trainiti\documents\arduino\libraries\lvgl\src\draw\lv_draw_triangle.h:30:6: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'lv_draw_rect_dsc_t * {aka struct <anonymous> *}'
void lv_draw_polygon(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_point_t points[],
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c: In function 'timer_cb':
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:938:37: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
lv_label_set_text_fmt(time_obj, "%d:%02d", time_act / 60, time_act % 60);
^
C:\Users\Giuseppe Trainiti\Documents\Arduino\libraries\lv_examples\src\lv_demo_music\lv_demo_music_main.c:938:37: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
Errore durante la compilazione per la scheda Teensy 4.1.
Did anyone had the same problem? Can you help me figure it out?
Thaks to anyone made it 'till here, and to who didn't