amobbs.com 阿莫电子技术论坛

标题: 报错(sfud_dev->init_ok) has assert failed at read 大概会是什么原因? [打印本页]

作者: PaulDE    时间: 2022-4-19 14:12
标题: 报错(sfud_dev->init_ok) has assert failed at read 大概会是什么原因?
想尝试一下FlashDB,用附带的例子改了一下,报错后没法继续了,不知道大概会是什么原因?

[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud.c:116) Start initialize Serial Flash Universal Driver(SFUD) V1.1.0.
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud.c:117) You can get the latest version on https://github.com/armink/SFUD .
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud.c:861) The flash device manufacturer ID is 0xEF, memory type ID is 0x40, capacity ID is 0x18.
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:131) Check SFDP header is OK. The reversion is V1.5, NPN is 0.
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:173) Check JEDEC basic flash parameter header is OK. The table id is 0, reversion is V1.5, length is 16, parameter table pointer is 0x000080.
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:203) JEDEC basic flash parameter table info:
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:204) MSB-LSB  3    2    1    0
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:206) [0001] 0xFF 0xF9 0x20 0xE5
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:206) [0002] 0x07 0xFF 0xFF 0xFF
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:206) [0003] 0x6B 0x08 0xEB 0x44
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:206) [0004] 0xBB 0x42 0x3B 0x08
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:206) [0005] 0xFF 0xFF 0xFF 0xFE
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:206) [0006] 0x00 0x00 0xFF 0xFF
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:206) [0007] 0xEB 0x40 0xFF 0xFF
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:206) [0008] 0x52 0x0F 0x20 0x0C
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:206) [0009] 0x00 0x00 0xD8 0x10
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:215) 4 KB Erase is supported throughout the device. Command is 0x20.
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:234) Write granularity is 64 bytes or larger.
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:245) Target flash status register is non-volatile.
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:271) 3-Byte only addressing.
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:305) Capacity is 16777216 Bytes.
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:311) Flash device supports 4KB block erase. Command is 0x20.
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:311) Flash device supports 32KB block erase. Command is 0x52.
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud_sfdp.c:311) Flash device supports 64KB block erase. Command is 0xD8.
[SFUD]Find a Winbond flash chip. Size is 16777216 bytes.
[SFUD](..\..\..\Source\FlashDB\sfud\src\sfud.c:840) Flash device reset success.
[SFUD]W25Q128JV flash device is initialize success.
[D/FAL] (fal_flash_init:47) Flash device |                norflash0 | addr: 0x00000000 | len: 0x01000000 | blk_size: 0x00001000 |initialized finish.
[I/FAL] ==================== FAL partition table ====================
[I/FAL] | name      | flash_dev |   offset   |    length  |
[I/FAL] -------------------------------------------------------------
[I/FAL] | fdb_tsdb1 | norflash0 | 0x00000000 | 0x00100000 |
[I/FAL] | fdb_kvdb1 | norflash0 | 0x00100000 | 0x00100000 |
[I/FAL] =============================================================
[I/FAL] Flash Abstraction Layer (V0.5.99) initialize success.
[FlashDB][kv][env] (..\..\..\ThirdParty\FlashDB\src\fdb_kvdb.c:1638) KVDB size is 1048576 bytes.
(sfud_dev->init_ok) has assert failed at read.


作者: PaulDE    时间: 2022-4-19 16:27
感觉是使用的设备不对。
有些地方使用了 SFUD_FLASH_DEVICE_TABLE, 又有些地方是FAL_FLASH_DEV_TABLE,应该是移植没弄好。
错乱了,层级结构还没弄清楚。




欢迎光临 amobbs.com 阿莫电子技术论坛 (https://www.amobbs.com/) Powered by Discuz! X3.4