|
移植FLASH DB到F407,用W25Q128
demo的main文件定义了
static struct fdb_default_kv_node default_kv_table[] = {
{"username", "armink", 0}, /* string KV */
{"password", "123456", 0}, /* string KV */
{"boot_count", &boot_count, sizeof(boot_count)}, /* int type KV */
{"boot_time", &boot_time, sizeof(boot_time)}, /* int array type KV */
};
这些username,password,boot_count是否已经作为KV保存到了FLASH中?
我试着增加了一个float type KV,然后通过fdb_kv_get_blob获取压力值,但进入了fail
default_kv_table里面定义的值,所以是否已经存入了FLASH中,还是说我用错了?
这个default_kv_table有什么意义吗 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|