Important: unclear posts may not receive useful answers.
Before posting
- Get familiar with Markdown to format and structure your post
- Be sure to update lvgl from the latest version from the
master
branch.- Be sure you have checked the FAQ and read the relevant part of the documentation.
- If applicable use the Simulator to eliminate hardware related issues.
Delete this section if you read and applied the mentioned points.
Description
What MCU/Processor/Board and compiler are you using?
ESP32
What LVGL version are you using?
V9.1
What do you want to achieve?
What have you tried so far?
Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
The code block(s) should be formatted like:
/*You code here*/
#include <Arduino.h>
#include <DHT.h>
#include <lvgl.h>
#include <HX711.h>
#define TFT_HOR_RES 240
#define TFT_VER_RES 240
#define DRAW_BUF_SIZE (TFT_HOR_RES * TFT_VER_RES / 10 * (LV_COLOR_DEPTH / 8))
uint32_t draw_buf[DRAW_BUF_SIZE / 4];
DHT dht(5, DHT21);
HX711 scale;
void Core0(void *pvParameters){
while(1){
vTaskDelay(10);
}
}
void setup(){
Serial.begin(115200);
dht.begin();
scale.begin(19, 18, 128);
pinMode(33,OUTPUT);
digitalWrite(33,HIGH);
lv_init();
lv_display_t * disp;
disp = lv_tft_espi_create(TFT_HOR_RES, TFT_VER_RES, draw_buf, sizeof(draw_buf));
xTaskCreatePinnedToCore( /* If core0 is not accessed, the error will not occur. */
Core0,
“Core0”,
8192,
NULL,
1,
NULL,
PRO_CPU_NUM
);
}
void loop(){
lv_task_handler();
delay(5);
}
Error Contents:
c:/users/.platformio/packages/toolchain-xtensa-esp32/bin/…/lib/gcc/xtensa-esp32-elf/8.4.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: .pio\build\esp-wrover-kit\firmware.elf section .dram0.bss' will not fit in region
dram0_0_seg’
c:/users/.platformio/packages/toolchain-xtensa-esp32/bin/…/lib/gcc/xtensa-esp32-elf/8.4.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: DRAM segment data does not fit.
c:/users/.platformio/packages/toolchain-xtensa-esp32/bin/…/lib/gcc/xtensa-esp32-elf/8.4.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: DRAM segment data does not fit.
c:/users/.platformio/packages/toolchain-xtensa-esp32/bin/…/lib/gcc/xtensa-esp32-elf/8.4.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: region `dram0_0_seg’ overflowed by 2080 bytes
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\esp-wrover-kit\firmware.elf] Error 1