esp32-smartdisplay
esp32-smartdisplay copied to clipboard
ESP32-4848S040CIY1 - ESP_ERR_NOT_SUPPORTED esp_lcd_panel_swap_xy(panel_handle, DISPLAY_SWAP_XY)
I have this display - https://www.aliexpress.com/item/1005006335587633.html - and tried setting up the demo project but I get the following repeating:
[ 5149][I][main.cpp:37] setup(): Board: esp32-4848S040CIY1
[ 5149][I][main.cpp:38] setup(): CPU: ESP32-S3 rev0, CPU Freq: 240 Mhz, 2 core(s)
[ 5150][I][main.cpp:39] setup(): Free heap: 315188 bytes
[ 5156][I][main.cpp:40] setup(): Free PSRAM: 8386279 bytes
[ 5161][I][main.cpp:41] setup(): SDK version: v4.4.6-dirty
ESP_ERROR_CHECK failed: esp_err_t 0x106 (ESP_ERR_NOT_SUPPORTED) at 0x4037b6d8
file: ".pio/libdeps/esp32-4848S040CIY1/esp32_smartdisplay/src/lvgl_panel_st7701_par.c" line 104
func: lvgl_lcd_init
expression: esp_lcd_panel_swap_xy(panel_handle, DISPLAY_SWAP_XY)
abort() was called at PC 0x4037b6db on core 1
Backtrace: 0x40377eb2:0x3fceba10 0x4037b6e5:0x3fceba30 0x40381605:0x3fceba50 0x4037b6db:0x3fcebad0 0x42029c80:0x3fcebaf0 0x42029ba2:0x3fcebbf0 0x420028e3:0x3fcebc10 0x4202d942:0x3fcebc50
#0 0x40377eb2:0x3fceba10 in panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:408
#1 0x4037b6e5:0x3fceba30 in esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:137
#2 0x40381605:0x3fceba50 in abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/abort.c:46
#3 0x4037b6db:0x3fcebad0 in _esp_error_check_failed at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_err.c:43
#4 0x42029c80:0x3fcebaf0 in lvgl_lcd_init at .pio/libdeps/esp32-4848S040CIY1/esp32_smartdisplay/src/lvgl_panel_st7701_par.c:96 (discriminator 1)
#5 0x42029ba2:0x3fcebbf0 in smartdisplay_init at .pio/libdeps/esp32-4848S040CIY1/esp32_smartdisplay/src/esp32_smartdisplay.c:219
#6 0x420028e3:0x3fcebc10 in setup() at src/main.cpp:43
#7 0x4202d942:0x3fcebc50 in loopTask(void*) at C:/Users/xxx/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:42
Commenting esp32_smartdisplay/src/lvgl_panel_st7701_par.c#L104 then yields:
[ 143][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled
[ 5149][I][main.cpp:37] setup(): Board: esp32-4848S040CIY1
[ 5149][I][main.cpp:38] setup(): CPU: ESP32-S3 rev0, CPU Freq: 240 Mhz, 2 core(s)
[ 5150][I][main.cpp:39] setup(): Free heap: 315188 bytes
[ 5156][I][main.cpp:40] setup(): Free PSRAM: 8386279 bytes
[ 5161][I][main.cpp:41] setup(): SDK version: v4.4.6-dirty
ESP_ERROR_CHECK failed: esp_err_t 0x106 (ESP_ERR_NOT_SUPPORTED) at 0x4037b6d8
file: ".pio/libdeps/esp32-4848S040CIY1/esp32_smartdisplay/src/lvgl_panel_st7701_par.c" line 107
func: lvgl_lcd_init
expression: esp_lcd_panel_mirror(panel_handle, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y)
abort() was called at PC 0x4037b6db on core 1
Backtrace: 0x40377eb2:0x3fceba10 0x4037b6e5:0x3fceba30 0x40381605:0x3fceba50 0x4037b6db:0x3fcebad0 0x42029c78:0x3fcebaf0 0x42029b9a:0x3fcebbf0 0x420028db:0x3fcebc10 0x4202d922:0x3fcebc50
#0 0x40377eb2:0x3fceba10 in panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:408
#1 0x4037b6e5:0x3fceba30 in esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:137
#2 0x40381605:0x3fceba50 in abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/abort.c:46
#3 0x4037b6db:0x3fcebad0 in _esp_error_check_failed at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_err.c:43
#4 0x42029c78:0x3fcebaf0 in lvgl_lcd_init at .pio/libdeps/esp32-4848S040CIY1/esp32_smartdisplay/src/lvgl_panel_st7701_par.c:96 (discriminator 1)
#5 0x42029b9a:0x3fcebbf0 in smartdisplay_init at .pio/libdeps/esp32-4848S040CIY1/esp32_smartdisplay/src/esp32_smartdisplay.c:219
#6 0x420028db:0x3fcebc10 in setup() at src/main.cpp:43
#7 0x4202d922:0x3fcebc50 in loopTask(void*) at C:/Users/xxx/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:42
Commenting esp32_smartdisplay/src/lvgl_panel_st7701_par.c#L107 then allows the demo to run.
Seems like ESP32-4848S040CIY1 does not support these functions.
Related? https://github.com/rzeldent/esp32-smartdisplay/issues/147
Hi Steve,
Very probable. Pls check the latest version/develop as this should have been fixed!
Thanks for noticing!
Might be missing something, but this doesn't seem to have changed in develop - https://github.com/rzeldent/esp32-smartdisplay/blob/develop/src/lvgl_panel_st7701_par.c
same issue , I try develop version it not work please share ESP32-4848S040CIY1 project
run demo reboot ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0xc (RTC_SW_CPU_RST),boot:0x18 (SPI_FAST_FLASH_BOOT) Saved PC:0x42053b4a SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x44c load:0x403c9700,len:0xbd8 load:0x403cc700,len:0x2a80 entry 0x403c98d0 [ 143][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled [ 158][I][main.cpp:27] setup(): Board: esp32-4848S040CIY1 [ 158][I][main.cpp:28] setup(): CPU: ESP32-S3 rev0, CPU Freq: 240 Mhz, 2 core(s) [ 159][I][main.cpp:29] setup(): Free heap: 314588 bytes [ 164][I][main.cpp:30] setup(): Free PSRAM: 8386279 bytes [ 170][I][main.cpp:31] setup(): SDK version: v4.4.6-dirty ESP_ERROR_CHECK failed: esp_err_t 0x106 (ESP_ERR_NOT_SUPPORTED) at 0x4037b6d8 file: ".pio/libdeps/esp32-4848S040CIY1/esp32_smartdisplay/src/lvgl_panel_st7701_par.c" line 104 func: lvgl_lcd_init expression: esp_lcd_panel_swap_xy(panel_handle, DISPLAY_SWAP_XY)
abort() was called at PC 0x4037b6db on core 1
Backtrace: 0x40377eb2:0x3fcebc70 0x4037b6e5:0x3fcebc90 0x40381605:0x3fcebcb0 0x4037b6db:0x3fcebd30 0x42029c10:0x3fcebd50 0x42029b32:0x3fcebe50 0x420028b3:0x3fcebe70 0x4202d8d2:0x3fcebeb0
#0 0x40377eb2:0x3fcebc70 in panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:408 #1 0x4037b6e5:0x3fcebc90 in esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:137 #2 0x40381605:0x3fcebcb0 in abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/abort.c:46 #3 0x4037b6db:0x3fcebd30 in _esp_error_check_failed at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_err.c:43 #4 0x42029c10:0x3fcebd50 in lvgl_lcd_init at .pio/libdeps/esp32-4848S040CIY1/esp32_smartdisplay/src/lvgl_panel_st7701_par.c:96 (discriminator 1) #5 0x42029b32:0x3fcebe50 in smartdisplay_init at .pio/libdeps/esp32-4848S040CIY1/esp32_smartdisplay/src/esp32_smartdisplay.c:219 #6 0x420028b3:0x3fcebe70 in setup() at src/main.cpp:33 #7 0x4202d8d2:0x3fcebeb0 in loopTask(void*) at C:/Users/Lenovo/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:42
ELF file SHA256: ee6c0ee2fceaeddc
Right now the only way to make it work is to comment out these lines in esp32_smartdisplay/src/lvgl_panel_st7701_par.c
UPDATE: As I see, it's already fixed in master: https://github.com/rzeldent/esp32-smartdisplay/commit/3b5f816ca1e8aaf6d019cd3f067bef865f48ec33
Hi! I have the same error but in ESP-8048S050. I will try what you did with DISPLAY_SWAP_XY.
Solved problem yes!!!!!! the same matter the same solution!!! thanks so much Dante!!!! and Great library. this with SquareLine Studio are a great team!