272 Commits
Author SHA1 Message Date
woquchonglangandGitHub e1372d19be fix: gcc build warning 'unused-parameter' (#422)
AutoTestCI / AutoTest (GRAN=1) (push) Canceled after 0s
AutoTestCI / AutoTest (GRAN=128) (push) Canceled after 0s
AutoTestCI / AutoTest (GRAN=256) (push) Canceled after 0s
AutoTestCI / AutoTest (GRAN=32) (push) Canceled after 0s
AutoTestCI / AutoTest (GRAN=64) (push) Canceled after 0s
AutoTestCI / AutoTest (GRAN=8) (push) Canceled after 0s
2026-08-15 18:49:19 +08:00
sijkandGitHub 8236571f6e feat(tsdb): Add fdb_tsl_max_blob_count() to get TSDB capacity (#417)
AutoTestCI / AutoTest (GRAN=1) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=128) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=256) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=32) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=64) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=8) (push) Has been cancelled
2026-06-12 17:12:45 +08:00
朱天龙 (Armink)andGitHub 6ac8fde6c3 feat: change the version number to 2.2.99
AutoTestCI / AutoTest (GRAN=1) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=128) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=256) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=32) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=64) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=8) (push) Has been cancelled
2026-03-23 19:09:29 +08:00
朱天龙 (Armink)andGitHub 65a87640bf feat: update the version number to v2.2.0 2.2.0 2026-03-23 18:59:33 +08:00
Oliver0927iandGitHub ad7a3a48bb fix(tsdb): enum to macro (#403) 2026-03-23 18:32:33 +08:00
BaselineandGitHub 08c541a9d7 feat(kvdb) Support 256bit write granularity for kvdb (#396)
AutoTestCI / AutoTest (GRAN=1) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=128) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=256) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=32) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=64) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=8) (push) Has been cancelled
2026-03-21 10:02:52 +08:00
armink db383a1944 fix(kvdb): Auto test failed when FDB_WRITE_GRAN is 128.
AutoTestCI / AutoTest (GRAN=1) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=128) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=32) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=64) (push) Has been cancelled
AutoTestCI / AutoTest (GRAN=8) (push) Has been cancelled
2026-03-17 19:53:19 +08:00
armink 2a2e97d7a0 ci: add matrix test for FDB_WRITE_GRAN=[1,8,32,64,128] 2026-03-17 19:53:19 +08:00
armink 02c0db9da8 fix(tsdb): Auto test failed when FDB_WRITE_GRAN is 64 or 128.
AutoTestCI / AutoTest (push) Has been cancelled
2026-03-17 17:46:24 +08:00
armink 46729e9ff0 fix: build warnings.
AutoTestCI / AutoTest (push) Has been cancelled
2026-03-16 20:20:43 +08:00
Oliver0927iandGitHub 0b059da12c feat: add TSDB support for high granularity Flash operations (#398)
AutoTestCI / AutoTest (push) Has been cancelled
2026-03-16 13:50:37 +08:00
朱天龙 (Armink)andGitHub 60f65550bc feat: Update software version to 2.1.99
AutoTestCI / AutoTest (push) Has been cancelled
2025-12-23 08:42:26 +08:00
EzraZigenbineandGitHub 8856961fa9 feat(TSDB): Added FDB_TSDB_FIXED_BLOB_SIZE compile-time option to reduce flash usage in fixed-size blob scenarios. (#387)
AutoTestCI / AutoTest (push) Has been cancelled
When enabled, removes log_len and log_addr fields from log_idx_data
structure, saving 8 bytes per TSL entry. The log address is instead
calculated at runtime based on the TSL's position within the sector.

This optimization is ideal for applications logging fixed-size data
(e.g., single temperature as float + timestamp) where the 8-byte overhead per entry becomes
significant with large numbers of entries.

Changes:
- Conditionally exclude log_len/log_addr from log_idx_data struct
- Calculate log address dynamically in read_tsl() when enabled
- Add strict size validation in tsl_append()
- Maintain backward compatibility via conditional compilation
2025-12-17 19:25:34 +08:00
Leandro LanzieriandGitHub b1043ed10d docs: fix return value of fdb_kv_get_blob (#377)
AutoTestCI / AutoTest (push) Has been cancelled
2025-10-27 16:52:21 +08:00
armink 48351df976 [doc] Update the CN doc
AutoTestCI / AutoTest (push) Has been cancelled
This reverts commit 89bd19ac3c.
2025-10-23 19:16:51 +08:00
rickyandGitHub f48f620815 [kvdb] 修复在align_write中 向下对齐等于0依然调用写入flash的现象 (#370)
AutoTestCI / AutoTest (push) Has been cancelled
2025-09-12 15:40:14 +08:00
6710c6d57f [demo][linux] Change an ordinary lock to a recursive lock (#339)
AutoTestCI / AutoTest (push) Has been cancelled
Co-authored-by: ricechen <rice.chen@queclink.com>
2024-12-30 12:32:36 +08:00
RockyandGitHub d44118ca82 [fdb] Rename "fdb_cfg.h" to "fdb_cfg_template.h" in inc folder (#338)
AutoTestCI / AutoTest (push) Has been cancelled
You need to rename the file to "fbd_cfg.h" and modify the configuration items in it to suit your use.
2024-12-26 12:19:32 +08:00
MGlolenstineandGitHub cf47f490bb [fdb] Fixed a bug with reversed arguments to the fwrite and fread functions for LIBC mode. (#333) 2024-12-25 09:30:34 +08:00
armink 89bd19ac3c [doc] Update the CN doc 2024-10-20 20:13:08 +08:00
Mason-Zhang-X-CandGitHub 714d6159e7 [tsdb][read_sector_info]: fix flash overwrite when abnormal power loss (#316) 2.1.1 2024-10-06 13:45:40 +08:00
armink f0af0eeda4 [fdb] Update the version number 2024-10-06 10:39:18 +08:00
armink 72a7905238 [kvdb] Improve the GC algorithm to solve the problem of failure to collection in some cases. 2024-10-05 22:53:52 +08:00
armink 92ed442cfc [test] update the autotest bsp and testcase to latest version 2024-09-17 22:48:37 +08:00
莫若麦香andGitHub fd08d7f323 [kvdb] fix null-pointer dereference (#314)
The C library function - strlen() does not accept a null-pointer.

Signed-off-by: FragrantRye <903465575@qq.com>
2024-09-15 16:32:07 +08:00
karthi012andGitHub 523fd2052d zephyr: add flashdb as external module (#313)
added flashdb as zephyr external module

Signed-off-by: Karthikeyan Krishnasamy <karthikeyan@linumiz.com>
2024-09-10 15:24:25 +08:00
Kenny ZhangandGitHub a8e8dcad64 [fdb_utils][_fdb_flash_write]: fix returned incorrect error code. (#300)
If user has set file mode, but file mode is disabled, _fdb_flash_write should return FDB_WRITE_ERR, not FDB_READ_ERR.
2024-07-26 09:44:36 +08:00
8f80336b89 [tsdb][read_sector_info]: fix read last valid tsl (#302)
Co-authored-by: wuchushun <wuchushun@kaadas.com>
2024-07-25 19:36:10 +08:00
Mr. ChipandGitHub 60675db070 [fdb_kvdb] fix lock issue to fix block on first run (#295) 2024-05-10 15:27:33 +08:00
Anuj DeshpandeandGitHub 86d00aa5fd [fdb] Fixes to build for IDF w/o errors (#293) 2024-04-24 20:24:11 +08:00
Anuj DeshpandeandGitHub 77801ce3e4 Add support for building esp32 demo under IDF 5.x (#292) 2024-04-22 14:20:14 +08:00
24305a9c76 [kvdb] Clear cache before setting kv to default (#282)
* fix: clear cache.

* Update fdb_kvdb.c, remove sector cache clear.

---------

Co-authored-by: shihang zhang <shihang.zhang.ext@siemens.com>
2024-03-22 13:51:56 +08:00
guoandGitHub 64b07d7c4c Update README_zh.md (#281) 2024-03-15 13:43:52 +08:00
_VIFEXTechandGitHub 7dfed14304 [fdb_kvdb]: fix shadow warning (#272)
```bash
FlashDB/src/fdb_kvdb.c: In function ‘read_sector_info’:
FlashDB/src/fdb_kvdb.c:488:23: warning: declaration of ‘sector_cache’ shadows a previous local [-Wshadow]
  488 |         kv_sec_info_t sector_cache = get_sector_from_cache(db, sector->addr);
      |                       ^~~~~~~~~~~~
FlashDB/src/fdb_kvdb.c:421:19: note: shadowed declaration is here
  421 |     kv_sec_info_t sector_cache = get_sector_from_cache(db, addr);
      |                   ^~~~~~~~~~~~
```

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
2024-01-02 13:55:00 +08:00
_VIFEXTechandGitHub 760520564c [fdb_kvdb] fix runtime error (#271)
```bash
FlashDB/src/fdb_kvdb.c:288:83: runtime error: left shift of 255 by 24 places cannot be represented in type 'int'
```

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
2024-01-01 18:25:13 +08:00
0594fdc957 [kvdb] Initialize only status explicitly (#267)
Co-authored-by: Oleg Hahm <oleg@riot-os.org>
2023-12-08 16:40:45 +08:00
86f5550e60 [fdb] close stream pointer via fclose() (#268)
Co-authored-by: Oleg Hahm <oleg@riot-os.org>
2023-12-08 16:38:51 +08:00
armink c1226f337a [kvdb] update some log level. 2.1.0 2023-12-02 19:26:45 +08:00
armink 8056e17f29 [kvdb] remove unused lock. 2023-12-02 19:25:26 +08:00
armink 441d514da2 [fdb] update the version number to V2.1.0 2023-11-19 12:36:13 +08:00
armink 718f73fbe6 [fdb] Add file access cache in file mode. The GC speed is up 2X. 2023-11-19 12:34:43 +08:00
armink 189b22e0a4 [fdb] Improve the database lock uses in init function. 2023-11-19 12:32:30 +08:00
armink cb84e2c41d [fdb] Improve FDB_ALIGN_DOWN macro. The align input parameter NOT depends on 2^N align number. 2023-11-19 11:34:48 +08:00
armink 5ebf8e6e8f [kvdb] Add kvdb inergrity check API. 2023-11-19 11:32:19 +08:00
armink 7e91b05483 [fdb] Add the lock in database init function. 2023-11-19 11:30:45 +08:00
armink 2dea1b2b88 [kvdb] Add more error logs. 2023-11-19 11:27:23 +08:00
armink a2c442435c [kvdb] Improve the kvdb cache performance. The GC will be 8x faster in file mode. 2023-11-19 11:26:48 +08:00
armink 3dca512285 [kvdb] Improve the GC speed when in recovery mode. 2023-11-19 11:06:12 +08:00
_VIFEXTechandGitHub dc6121b448 [fdb] fix warning (#258)
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
2023-11-12 13:27:43 +08:00
Valeriy KucherenkoandGitHub 0d1b438947 Add ability to append TSDB value at specific timestamp (#256) 2023-11-09 19:27:52 +08:00