Skip to content

LittleFS is still using malloc() #39

@mcknly

Description

@mcknly

Even though buffers are provided to littlefs (see storman_service.c in 94b76e4), it still seems to be calling malloc() and causing FreeRTOS to overflow its heap. Increasing FreeRTOS heap in hardware/[platform]/rtos_config.h is a workaround, but we really shouldn't have LFS or any other task calling malloc.

This can be tested by placing a breakpoint at littlefs/littlefs/lfs_util.h line 249 and calling a flash filesystem function via /mnt/flash0, it will only hit the breakpoint if LFS is using malloc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions