Skip to content

Isolate NVS and Flash write tasks #1245

@mutatrum

Description

@mutatrum

From #1217 (comment)

Each tasks allocates heap, and by design, this always uses internal memory. It is possible to move this heap off to PSRAM, but only if that task does not write to NVS or Flash.

Currently NVS is misused as an event bus between tasks, this should be replaced by some other means of inter-task communications, and ideally only a single task should update the NVS store.

One alternative options would be to use the ESP Event handling system. This would also decouple components and reduce the use of GlobalState.

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