Search found 10 matches

by nooooooob
Thu Jun 07, 2018 1:24 am
Forum: ESP-IDF
Topic: Questions about the dynamic frequency setting of CPU
Replies: 8
Views: 13095

Re: Questions about the dynamic frequency setting of CPU

I enabled the PM DFS setting in the menuconfig and I used your code to set the cpu frequency to 40MHz but the current is still higher than expected, I noticed there is an 8Mhz crystal in the esp32. I wonder if there is any way to chose 8MHz as my cpu frequency when I don't need a very high processi...
by nooooooob
Wed Jun 06, 2018 9:31 am
Forum: ESP-IDF
Topic: Questions about the dynamic frequency setting of CPU
Replies: 8
Views: 13095

Re: Questions about the dynamic frequency setting of CPU

In the simplest way, switching working frequency can look like this: https://gist.github.com/igrr/a0c3b05f16d12bdd542e0a8d943036e6 However, take note that: 1) There is currently a bug in IDF which makes this kind of switching between 80/160 and 240MHz impossible. I.e. you can switch between 80 and ...
by nooooooob
Mon Jun 04, 2018 5:48 am
Forum: General Discussion
Topic: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb
Replies: 13
Views: 14948

Re: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb

I managed to resize the partitional table and get all the pairs stored. Thanks for your help! :)
by nooooooob
Fri Jun 01, 2018 8:21 am
Forum: General Discussion
Topic: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb
Replies: 13
Views: 14948

Re: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb

You can resize nvs partition but it's probably better to just store as raw binary data because using 64 bytes to store 20 bytes is not efficient. Hi, are you suggesting me to use a very long binary object to store all the data? I considered that way before but when I get new data I need to load all...
by nooooooob
Fri Jun 01, 2018 4:44 am
Forum: General Discussion
Topic: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb
Replies: 13
Views: 14948

Re: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb

If we look here: http://esp-idf.readthedocs.io/en/latest/api-guides/partition-tables.html We find the documentation on the partitions table mechanism. Looking further, we find a partition called "nvs". This appears to be where in flash the NVS data is kept. It appears we could increase the size of ...
by nooooooob
Fri Jun 01, 2018 2:10 am
Forum: General Discussion
Topic: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb
Replies: 13
Views: 14948

Re: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb

WiFive wrote:Default nvs partition size is 6 pages, 1 page is reserved. Each page holds 126 entries so if a 20 byte blob takes 2 entries 126*5/2 = 315.
Thanks for replying, Is there any way for me to get more pages to store more sets of data? :?:
by nooooooob
Fri Jun 01, 2018 2:09 am
Forum: General Discussion
Topic: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb
Replies: 13
Views: 14948

Re: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb

Sadly I don't have info on your puzzle ... but I did want to add a thought. The NVS is ( I believe ) supposed to hold persistent settings. A simple way to set a configuration property and have it available on next boot. When you say that you are going to have 1000 name/value pairs ... I'm curious w...
by nooooooob
Wed May 30, 2018 1:55 am
Forum: General Discussion
Topic: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb
Replies: 13
Views: 14948

Re: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb

I checked the menuconfig, I chose single app no OTA in the partition table colum. Should I choose Custom partition table CSV to load my own partition table? I'm really puzzled cause I can't find any help in the esp-idf, there's no examples and I can't find any help from AIP reference or in the DataS...
by nooooooob
Wed May 30, 2018 1:28 am
Forum: General Discussion
Topic: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb
Replies: 13
Views: 14948

Re: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb

I used the default settings from esp-idf/example/nvs_rw_blobs. Actually I don't know how to check my partition table or how to set my partition table, Can you give me some hints? I checked menu config several times but I just can't find any settings about page or partition table :(
by nooooooob
Mon May 28, 2018 9:29 am
Forum: General Discussion
Topic: ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb
Replies: 13
Views: 14948

ESP_ERR_NVS_NOT_ENOUGH_SPACE when using set_nvs_bolb

hi, I got a problem when using NVS set_nvs_blob function. I want to store 1000 sets of key-value pairs and each value is 20 bytes. The storage is supposed to be sufficient but actually it can only store 314 sets and when I try to set another bolb error showed up: ESP_ERR_NVS_NOT_ENOUGH_SPACE. All th...