Skip to content

Cache disabled but cached memory region accessed #198

Open
@minou65

Description

@minou65

Hi all

I am trying to update my project with this library from version 0.2.1 to version 1.2.0. In my project, I use a Waveshare ESP32-S3 Touch-LCD 7 Zoll. > I have replaced all the necessary files and configured everything as described in the guide or as I had done before. When I do not initialize the display, the code runs as expected. However, as soon as I add the following code, even without writing to the screen,I receive the below error.

Tearing Mode is set to 3.

Board* board;

// inside setup
    board = new Board();
    board->init();

#if LVGL_PORT_AVOID_TEARING_MODE
    // When avoid tearing function is enabled, the frame buffer number should be set in the board driver
    board->getLCD()->configFrameBufferNumber(LVGL_PORT_DISP_BUFFER_NUM);
#endif
#if ESP_PANEL_DRIVERS_BUS_ENABLE_RGB && CONFIG_IDF_TARGET_ESP32S3
    auto lcd = board->getLCD();
    auto lcd_bus = lcd->getBus();
    /**
     * When using "ESP32-S3 + RGB LCD" to operate WiFi or flash, the screen may drift. We need to enable the
     * `RGB LCD Bounce Buffer + XIP on PSRAM` feature to avoid this issue.
     * See FAQ section in README.md for more information.
     */
	Serial.print("LCD Bus Type: "); Serial.println(lcd_bus->getBasicAttributes().type);
    if (lcd_bus->getBasicAttributes().type == ESP_PANEL_BUS_TYPE_RGB) {
        static_cast<BusRGB*>(lcd_bus)->configRGB_BounceBufferSize(lcd->getFrameWidth() * 20);
    }
#endif
    assert(board->begin());
Guru Meditation Error: Core  1 panic'ed (Cache disabled but cached memory region accessed). 


Core  1 register dump:
PC      : 0x40056f64  PS      : 0x00060034  A0      : 0x8037bdeb  A1      : 0x3fc9ed90  
A2      : 0x3fcbd48c  A3      : 0x3c254f80  A4      : 0x00007d00  A5      : 0x3fcbd48c  
A6      : 0xbad00bad  A7      : 0xbad00bad  A8      : 0x00000000  A9      : 0x03cb1284  
A10     : 0x01ffffff  A11     : 0x00000003  A12     : 0x00060023  A13     : 0x00000000  
A14     : 0x00000001  A15     : 0x00000020  SAR     : 0x00000018  EXCCAUSE: 0x00000007  
EXCVADDR: 0x00000000  LBEG    : 0x40056f5c  LEND    : 0x40056f72  LCOUNT  : 0x000007cf  


Backtrace: 0x40056f61:0x3fc9ed90 0x4037bde8:0x3fc9eda0 0x4037bfa7:0x3fc9edc0 0x4037e693:0x3fc9ede0 0x4037c421:0x3fc9ee10 0x403794cc:0x3fcac150 0x40379753:0x3fcac170 0x403823aa:0x3fcac1a0

Exception:Error:
0x40056f64: ?? ??:0
0x40056f5c: ?? ??:0
0x40056f72: ?? ??:0
0x40056f61: ?? ??:0
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_lcd/rgb/esp_lcd_panel_rgb.c:929:::0x4037bde8:lcd_rgb_panel_fill_bounce_buffer
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_lcd/rgb/esp_lcd_panel_rgb.c:964:::0x4037bfa7:lcd_rgb_panel_eof_handler
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_hw_support/dma/gdma.c:851:::0x4037e693:gdma_default_tx_isr
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/xtensa/xtensa_vectors.S:1240:::0x4037c421:_xt_lowint1
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/spi_flash/cache_utils.c:134 (discriminator 1):::0x403794cc:spi_flash_op_block_func
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/esp_ipc.c:65:::0x40379753:ipc_task
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:139:::0x403823aa:vPortTaskWrapper
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/xtensa/xtensa_vectors.S:2117:::0x4037408f:_WindowOverflow8
0x403c8700: ?? ??:0
0x403c8704: ?? ??:0
0x403cb700: ?? ??:0
0x403c88ac: ?? ??:0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions