Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
flashDB
5
在用W25Q64移植flashDB时遇到(0) has assert failed at read_kv.错误
发布于 2023-03-14 09:56:59 浏览:469
订阅该版
在移植flashDB时遇到如下错误,详细log如下: ``` dbinit db1init [D/FAL] (fal_flash_init:47) Flash device | W25Q64 | addr: 0x00000000 | len: 0x00800000 | blk_size: 0x00001000 |initialized finish.[32;22m[I/FAL] ==================== FAL partition table ====================[0m [32;22m[I/FAL] | name | flash_dev | offset | length |[0m [32;22m[I/FAL] -------------------------------------------------------------[0m [32;22m[I/FAL] | fdb_kvdb1 | W25Q64 | 0x00040000 | 0x00040000 |[0m [32;22m[I/FAL] | fdb_kvdb2 | W25Q64 | 0x00080000 | 0x00020000 |[0m [32;22m[I/FAL] | fdb_kvdb3 | W25Q64 | 0x000a0000 | 0x00020000 |[0m [32;22m[I/FAL] | fdb_kvdb4 | W25Q64 | 0x000c0000 | 0x00190000 |[0m [32;22m[I/FAL] =============================================================[0m [32;22m[I/FAL] Flash Abstraction Layer (V0.5.99) initialize success.[0m [FlashDB][kv][env] (..\..\flashdb\src\fdb_kvdb.c:1656) KVDB size is 262144 bytes. [FlashDB]FlashDB V1.2.0 is initialize success. [FlashDB]You can get the latest version on https://github.com/armink/FlashDB . db2init [FlashDB][kv][fdparam] (..\..\flashdb\src\fdb_kvdb.c:1656) KVDB size is 131072 bytes. db3init [FlashDB][kv][fdcurv] (..\..\flashdb\src\fdb_kvdb.c:1656) KVDB size is 131072 bytes. [FlashDB][kv][fdcurv] (..\..\flashdb\src\fdb_kvdb.c:1656) KVDB size is 131072 bytes. db4init [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1656) KVDB size is 1638400 bytes. [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00069000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0006B000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0006D000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0006F000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00071000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00073000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00075000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00077000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00079000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0007B000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0007D000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0007F000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00081000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00083000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00085000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00087000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00089000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0008B000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0008D000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0008F000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00091000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00093000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00095000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00097000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00099000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0009B000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0009D000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0009F000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000A1000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000A3000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000A5000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000A7000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000A9000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000AB000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000AD000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000AF000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000B1000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000B3000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000B5000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000B7000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000B9000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000BB000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000BD000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000BF000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000C1000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000C3000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000C5000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000C7000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000C9000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000CB000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000CD000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000CF000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000D1000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000D3000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000D5000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000D7000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000D9000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000DB000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000DD000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000DF000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000E1000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000E3000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000E5000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000E7000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000E9000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000EB000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000ED000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000EF000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000F1000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000F3000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000F5000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000F7000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000F9000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000FB000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000FD000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x000FF000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00101000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00103000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00105000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00107000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00109000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0010B000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0010D000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0010F000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00111000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00113000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00115000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00117000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00119000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0011B000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0011D000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0011F000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00121000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00123000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00125000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00127000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00129000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0012B000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0012D000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0012F000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00131000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00133000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00135000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00137000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00139000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0013B000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0013D000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0013F000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00141000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00143000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00145000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00147000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00149000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0014B000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0014D000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0014F000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00151000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00153000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00155000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00157000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00159000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0015B000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0015D000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0015F000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00161000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00163000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00165000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00167000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00169000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0016B000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0016D000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0016F000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00171000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00173000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00175000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00177000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00179000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0017B000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0017D000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0017F000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00181000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00183000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00185000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00187000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x00189000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0018B000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0018D000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:1444) Sector header info is incorrect. Auto format this sector (0x0018F000). [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:333) kv->len = 7972, db_sec_size(db) = 4096, SECTOR_HDR_DATA_SIZE= 36,db_max_size(db) = 1638400 [FlashDB][kv][fddata] (..\..\flashdb\src\fdb_kvdb.c:336) (0) has assert failed at read_kv. ```
查看更多
1
个回答
默认排序
按发布时间排序
GJW2KI
2023-03-14
这家伙很懒,什么也没写!
详细初始化代码如下: ```c #define FAL_DEBUG 1 #define FAL_PART_HAS_TABLE_CFG #define FDB_PART1_ADDR (64*W25Q64_SECTOR_SIZE) #define FDB_PART1_SIZE (64*W25Q64_SECTOR_SIZE) #define FDB_PART2_ADDR (FDB_PART1_ADDR + FDB_PART1_SIZE) #define FDB_PART2_SIZE (32*W25Q64_SECTOR_SIZE) #define FDB_PART3_ADDR (FDB_PART2_ADDR + FDB_PART2_SIZE) #define FDB_PART3_SIZE (32*W25Q64_SECTOR_SIZE) #define FDB_PART4_ADDR (FDB_PART3_ADDR + FDB_PART3_SIZE) #define FDB_PART4_SIZE (400*W25Q64_SECTOR_SIZE) #define FDB_DATA_ADDR (FDB_PART4_ADDR + FDB_PART4_SIZE) #define FDB_DATA_SIZE (40*W25Q64_SECTOR_SIZE) #define FDB_DAYSTAIC_ADDR (FDB_DATA_ADDR + FDB_DATA_SIZE) #define FDB_DAYSTAIC_SIZE (4*W25Q64_SECTOR_SIZE) /* ===================== Flash device Configuration ========================= */ extern const struct fal_flash_dev gW25Q64Flash; /* flash device table */ #define FAL_FLASH_DEV_TABLE \ { \ &gW25Q64Flash, \ } /* ====================== Partition Configuration ========================== */ #ifdef FAL_PART_HAS_TABLE_CFG /* partition table */ #define FAL_PART_TABLE \ { \ {FAL_PART_MAGIC_WORD, "fdb_kvdb1", "W25Q64", FDB_PART1_ADDR, FDB_PART1_SIZE, 0}, \ {FAL_PART_MAGIC_WORD, "fdb_kvdb2", "W25Q64", FDB_PART2_ADDR, FDB_PART2_SIZE, 0}, \ {FAL_PART_MAGIC_WORD, "fdb_kvdb3", "W25Q64", FDB_PART3_ADDR, FDB_PART3_SIZE, 0}, \ {FAL_PART_MAGIC_WORD, "fdb_kvdb4", "W25Q64", FDB_PART4_ADDR, FDB_PART4_SIZE, 0}, \ } #endif /* FAL_PART_HAS_TABLE_CFG */ /** * @defgroup W25Q64_Size W25Q64 Size * @{ */ #define W25Q64_PAGE_SIZE (256UL) #define W25Q64_SECTOR_SIZE (1024UL * 4UL) //(1024UL * 8UL) #define W25Q64_BLK_SIZE (1024UL * 64UL) #define W25Q64_PAGE_PER_SECTOR (W25Q64_SECTOR_SIZE / W25Q64_PAGE_SIZE) #define W25Q64_MAX_ADDR (0x800000UL) /** const struct fal_flash_dev gW25Q64Flash = { .name = "W25Q64", .addr = 0, .len = W25Q64_MAX_ADDR, .blk_size = W25Q64_SECTOR_SIZE, .ops = {FlashInit, FlashRead, FlashWrite, FlashErase}, .write_gran = 32 }; ```
撰写答案
登录
注册新账号
关注者
0
被浏览
469
关于作者
GJW2KI
这家伙很懒,什么也没写!
提问
3
回答
1
被采纳
0
关注TA
发私信
相关问题
1
flashDB有两个变量未定义?
2
FlashDB 初始化时出现 check failed
3
FlashDB初始化isn't initialize OK
4
FlashDB在哪里修改版本号实现自动更新?
5
flashDB重复更新同一个参数的问题
6
flashDB kv ts 最大存储字节在哪里设置
7
操作flashDB时thread 提示error -2 超时
8
flashdb 断言错误问题求解
9
FlashDB没法选择版本
10
flashdb出现moved kv日志后,再去查询发现数据有丢失
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
freemodbus主机在freertos的适配,参考rtthread例程
2
开源共生 商业共赢 | RT-Thread 2024开发者大会议程正式发布!
3
【24嵌入式设计大赛】基于RT-Thread星火一号的智慧家居系统
4
RT-Thread EtherKit开源以太网硬件正式发布
5
还在担心bsp不好维护吗?快使用yml管理主线bsp
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
SFUD
msh
rt_mq_消息队列_msg_queue
keil_MDK
ulog
MicroPython
C++_cpp
本月问答贡献
a1012112796
20
个答案
3
次被采纳
张世争
12
个答案
3
次被采纳
踩姑娘的小蘑菇
7
个答案
3
次被采纳
用户名由3_15位
14
个答案
2
次被采纳
rv666
9
个答案
2
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
RTT_逍遥
1
篇文章
8
次点赞
大龄码农
1
篇文章
5
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部