Skip to content

esp32 SPIRAM replacement for malloc #45

@majorninth

Description

@majorninth

Is there an existing override in the library to use the external spiram of the esp32 for the heap?
if not, is it possible for you to create a new one with the following:

#include "esp_heap_caps.h"
#define SQLITE_MALLOC(x) heap_caps_malloc(x, MALLOC_CAP_SPIRAM) //modified was malloc
#define SQLITE_FREE(x) heap_caps_free(x) //modified was free
#define SQLITE_REALLOC(x,y) heap_caps_realloc((x),(y),MALLOC_CAP_SPIRAM) //modified was realloc

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