Skip to content

Bounce buffering on SRAM caused crash during BLE pairing #10214

@hientv1999

Description

@hientv1999

LVGL version

v8.4.0

Platform

VSCode, PlatformIO, ESP32S3, Arduino Framework.

What happened?

The hardware is Waveshare ESP32-S3-Touch-LCD-4.3. The screen doesn't have its own screen buffer, so it needs to be constantly fed with data from the MCU.
Currently, I constantly encounter this error during BLE pairing:
"Cache disabled but cached memory region accessed"

The crash happens right after the user enters the correct BLE passkey. I believe it happens because when a matched passkey is received, the MCU will store the LTK and other parameters in NVS, and during this NVS write, it's likely that the DMA callback trigger and try to access SRAM to send data to the LCD. I tried all sorts of solutions, but I can't solve this bug yet. I can't use PSRAM buffering because of its unstable bandwidth (jittering because the bus is shared between reading from and writing to PSRAM). I have to stay with bounce buffe on SRAM but I want to overcome this crash. Please help. Thank you

How to reproduce?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions