$ git clone
https://github.com/nopnop2002/esp32-idf-sqlite3
$ cd esp32-idf-sqlite3
$ cd spiffs
$ idf.py flash monitor
I (0) cpu_start: App cpu up.
I (342) cpu_start: Pro cpu start user code
I (342) cpu_start: cpu freq: 160000000 Hz
I (342) cpu_start: Application information:
I (347) cpu_start: Project name:
sqlite3
I (352) cpu_start: App
version:
esp-idf-v3-10-gf93f754-dirty
I (359) cpu_start: Compile time:
Mar 14 2024 20:04:19
I (365) cpu_start: ELF file SHA256:
6a42537cdbbeedb0...
I (371) cpu_start:
ESP-IDF:
v5.1.2-695-gd922d4178f-dirty
I (378) cpu_start: Min chip rev:
v0.0
I (382) cpu_start: Max chip rev:
v3.99
I (387) cpu_start: Chip
rev: v1.0
I (392) heap_init: Initializing. RAM available for dynamic
allocation:
I (399) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (405) heap_init: At 3FFB3E08 len 0002C1F8 (176 KiB):
DRAM
I (411) heap_init: At 3FFE0440 len 00003AE0 (14 KiB):
D/IRAM
I (418) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB):
D/IRAM
I (424) heap_init: At 4008C910 len 000136F0 (77 KiB): IRAM
I (432) spi_flash: detected chip: generic
I (435) spi_flash: flash io: dio
W (439) spi_flash: Detected size(4096k) larger than the
size in the binary image header(2048k). Using the size in
the binary image header.
I (453) app_start: Starting scheduler on CPU0
I (457) app_start: Starting scheduler on CPU1
I (457) main_task: Started on CPU0
I (467) main_task: Calling app_main()
I (467) MAIN: Initializing SPIFFS
W (467) SPIFFS: mount failed, -10025. formatting...
I (8767) MAIN: Partition size: total: 896321, used: 0
I (9007) main_task: Returned from app_main()
Opened database successfully
Opened database successfully
CREATE TABLE test1 (id INTEGER, content);
Operation done successfully
Time taken: 189772
CREATE TABLE test2 (id INTEGER, content);
Operation done successfully
Time taken: 189477
INSERT INTO test1 VALUES (1, 'Hello, World from test1');
Operation done successfully
Time taken: 65863
INSERT INTO test2 VALUES (1, 'Hello, World from test2');
Operation done successfully
Time taken: 62830
SELECT * FROM test1
Callback function called: id = 1
content = Hello, World from test1
Operation done successfully
Time taken: 15902
SELECT * FROM test2
Callback function called: id = 1
content = Hello, World from test2
Operation done successfully
Time taken: 15477
All Done
|