空间是足够的,但是nvs写入失败

coollofty
Posts: 16
Joined: Thu Feb 14, 2019 10:09 am

空间是足够的,但是nvs写入失败

Postby coollofty » Tue Mar 19, 2019 2:17 am

首先贴出我的分区表代码:

Code: Select all

nvs,      data, nvs,		,	0xC000
otadata,  data, ota,		,	0x2000
phy_init, data, phy,		,	0x1000
coredump, data, coredump,	,       0x10000
nvs_key,  data, nvs_keys,	,       0x1000
factory,  app,  factory,	,	0x1D8000
ota_0,    app,  ota_0,		,	0x1D8000
写入使用的是examples/storage/nvs_rw_blob里面的代码,修改了需要写入的内容而来,我写了一个17,368字节的blob数据块,但是在写入的时候出现了失败,nvs_set_blob时返回ESP_ERR_NVS_VALUE_TOO_LONG,但是按照docs来看,17Kb并不超过blob类型的上限,也只占NVS空间的35%,nvs里现在是空的,执行该测试之前,我做了erase_flash,且使用的IDF是github上最新的master,那么还是出现这个错误,原因是什么呢?

ESP_Alvin
Posts: 211
Joined: Thu May 17, 2018 2:26 am

Re: 空间是足够的,但是nvs写入失败

Postby ESP_Alvin » Fri Mar 22, 2019 10:34 pm

The issue was not reproducible with the mentioned partition table. Can you please attach or paste your example?

ESP_Alvin
Posts: 211
Joined: Thu May 17, 2018 2:26 am

Re: 空间是足够的,但是nvs写入失败

Postby ESP_Alvin » Tue Jun 11, 2019 6:26 am

Coollofty

使用你提供的 partition table,我们无法复现你提到的问题。你能提供下你的示例么?谢谢。

Alvin

ESP_Alvin
Posts: 211
Joined: Thu May 17, 2018 2:26 am

Re: 空间是足够的,但是nvs写入失败

Postby ESP_Alvin » Tue Aug 20, 2019 6:01 am

Coollofty

你的问题还存在么?可否提供下示例?谢谢。

Alvin

Who is online

Users browsing this forum: No registered users and 35 guests