When compiling the weather_station sketch:
Sketch uses 1801157 bytes (137%) of program storage space. Maximum is 1310720 bytes.
Global variables use 63292 bytes (19%) of dynamic memory, leaving 264388 bytes for local variables. Maximum is 327680 bytes.
Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.
text section exceeds available space in board
Compilation error: text section exceeds available space in board
In addition, there are a lot of warnings:
In file included from C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\ESP_Weather_Station.ino:9:
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\weather_images.h:15: warning: “LV_BIG_ENDIAN_SYSTEM” redefined
15 | #define LV_BIG_ENDIAN_SYSTEM
|
In file included from c:\users\meagh\documents\arduino\libraries\lvgl\src/lv_conf_internal.h:60,
from c:\users\meagh\documents\arduino\libraries\lvgl\src/lv_init.h:16,
from c:\users\meagh\documents\arduino\libraries\lvgl\lvgl.h:21,
from c:\Users\meagh\Documents\Arduino\libraries\lvgl\src/lvgl.h:16,
from C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\ESP_Weather_Station.ino:1:
c:\users\meagh\documents\arduino\libraries\lv_conf.h:350: note: this is the location of the previous definition
350 | #define LV_BIG_ENDIAN_SYSTEM 0
|
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\weather_images.h:197:1: warning: missing initializer for member ‘lv_image_header_t::stride’ [-Wmissing-field-initializers]
197 | };
| ^
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\weather_images.h:343:1: warning: missing initializer for member ‘lv_image_header_t::stride’ [-Wmissing-field-initializers]
343 | };
| ^
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\weather_images.h:489:1: warning: missing initializer for member ‘lv_image_header_t::stride’ [-Wmissing-field-initializers]
489 | };
| ^
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\weather_images.h:635:1: warning: missing initializer for member ‘lv_image_header_t::stride’ [-Wmissing-field-initializers]
635 | };
| ^
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\weather_images.h:781:1: warning: missing initializer for member ‘lv_image_header_t::stride’ [-Wmissing-field-initializers]
781 | };
| ^
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\weather_images.h:927:1: warning: missing initializer for member ‘lv_image_header_t::stride’ [-Wmissing-field-initializers]
927 | };
| ^
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\weather_images.h:969:1: warning: missing initializer for member ‘lv_image_header_t::stride’ [-Wmissing-field-initializers]
969 | };
| ^
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\weather_images.h:1011:1: warning: missing initializer for member ‘lv_image_header_t::stride’ [-Wmissing-field-initializers]
1011 | };
| ^
In file included from c:\users\meagh\documents\arduino\libraries\lvgl\src/widgets/animimage/lv_animimage.h:16,
from c:\users\meagh\documents\arduino\libraries\lvgl\lvgl.h:49:
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\ESP_Weather_Station.ino: In function ‘void lv_create_main_gui()’:
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\ESP_Weather_Station.ino:78:20: warning: unused variable ‘image_weather_sun’ [-Wunused-variable]
78 | LV_IMAGE_DECLARE(image_weather_sun);
| ^~~~~~~~~~~~~~~~~
c:\users\meagh\documents\arduino\libraries\lvgl\src\widgets\image\lv_image.h:302:64: note: in definition of macro ‘LV_IMAGE_DECLARE’
302 | #define LV_IMAGE_DECLARE(var_name) extern const lv_image_dsc_t var_name
| ^~~~~~~~
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\ESP_Weather_Station.ino:79:20: warning: unused variable ‘image_weather_cloud’ [-Wunused-variable]
79 | LV_IMAGE_DECLARE(image_weather_cloud);
| ^~~~~~~~~~~~~~~~~~~
c:\users\meagh\documents\arduino\libraries\lvgl\src\widgets\image\lv_image.h:302:64: note: in definition of macro ‘LV_IMAGE_DECLARE’
302 | #define LV_IMAGE_DECLARE(var_name) extern const lv_image_dsc_t var_name
| ^~~~~~~~
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\ESP_Weather_Station.ino:80:20: warning: unused variable ‘image_weather_rain’ [-Wunused-variable]
80 | LV_IMAGE_DECLARE(image_weather_rain);
| ^~~~~~~~~~~~~~~~~~
c:\users\meagh\documents\arduino\libraries\lvgl\src\widgets\image\lv_image.h:302:64: note: in definition of macro ‘LV_IMAGE_DECLARE’
302 | #define LV_IMAGE_DECLARE(var_name) extern const lv_image_dsc_t var_name
| ^~~~~~~~
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\ESP_Weather_Station.ino:81:20: warning: unused variable ‘image_weather_thunder’ [-Wunused-variable]
81 | LV_IMAGE_DECLARE(image_weather_thunder);
| ^~~~~~~~~~~~~~~~~~~~~
c:\users\meagh\documents\arduino\libraries\lvgl\src\widgets\image\lv_image.h:302:64: note: in definition of macro ‘LV_IMAGE_DECLARE’
302 | #define LV_IMAGE_DECLARE(var_name) extern const lv_image_dsc_t var_name
| ^~~~~~~~
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\ESP_Weather_Station.ino:82:20: warning: unused variable ‘image_weather_snow’ [-Wunused-variable]
82 | LV_IMAGE_DECLARE(image_weather_snow);
| ^~~~~~~~~~~~~~~~~~
c:\users\meagh\documents\arduino\libraries\lvgl\src\widgets\image\lv_image.h:302:64: note: in definition of macro ‘LV_IMAGE_DECLARE’
302 | #define LV_IMAGE_DECLARE(var_name) extern const lv_image_dsc_t var_name
| ^~~~~~~~
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\ESP_Weather_Station.ino:83:20: warning: unused variable ‘image_weather_night’ [-Wunused-variable]
83 | LV_IMAGE_DECLARE(image_weather_night);
| ^~~~~~~~~~~~~~~~~~~
c:\users\meagh\documents\arduino\libraries\lvgl\src\widgets\image\lv_image.h:302:64: note: in definition of macro ‘LV_IMAGE_DECLARE’
302 | #define LV_IMAGE_DECLARE(var_name) extern const lv_image_dsc_t var_name
| ^~~~~~~~
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\ESP_Weather_Station.ino: In function ‘void get_weather_data()’:
C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\ESP_Weather_Station.ino:286:9: warning: ‘template<unsigned int N> class ArduinoJson::V720PB22::StaticJsonDocument’ is deprecated: use JsonDocument instead [-Wdeprecated-declarations]
286 | StaticJsonDocument<1024> doc;
| ^~~~~~~~~~~~~~~~~~
In file included from c:\Users\meagh\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:56,
from c:\Users\meagh\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\meagh\Documents\Arduino\ESP_Weather_Station\ESP_Weather_Station.ino:12:
c:\Users\meagh\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/compatibility.hpp:63:58: note: declared here
63 | class ARDUINOJSON_DEPRECATED(“use JsonDocument instead”) StaticJsonDocument
| ^~~~~~~~~~~~~~~~~~
Hi.
Make sure you have ESP32 Dev Module selected in Tools > Board.
Then, go to Tools > Partition scheme > choose anything that has more than 1.4MB APP, for example: “Huge APP (3MB No OTA/1MB SPIFFS“.
This should fix the issue.
Regards,
Sara