siara-cc / esp32-idf-sqlite3

Sqlite library for esp-idf (esp32) framework
Apache License 2.0
147 stars 57 forks source link

(TG1WDT_SYS_RESET) occurs when attempting to use sqlite with FreeRTOS in ESP32 Wrover #19

Open Kruparth3004 opened 1 year ago

Kruparth3004 commented 1 year ago

If I try to use Sqlite3 in freeRTOS, it crashes with no Guru Meditation error (TG1WDT_SYS_RESET). I've changed the memory allocating functions inside the SQLite to heap_caps_allocations which uses only external PSRAM because I've exhausted most of the internal heap.

If I run SQLite with a single thread running and default memory allocating functions, it works fine.

I'm using the latest ESP-IDF to compile my project.

Regards, Kruparth