Search found 5 matches

by nickname
Mon Jun 01, 2020 6:22 am
Forum: ESP-IDF
Topic: [SOLVED] ESP_ERR_NVS_NOT_FOUND from nvs_get_blob() due to nvs_commit() race condition
Replies: 18
Views: 19714

Re: Random ESP_ERR_NVS_NOT_FOUND from nvs_get_blob() sometimes?

Hi Charger, this looks a bit more like an issue in nvs. used_entries shouldn't be 0 if you set values already. The partition should be large enough, in particular if you only save one of these entries on the whole partition. Is it possible to read out the partition in this state and send it to us so...
by nickname
Mon Jun 01, 2020 4:43 am
Forum: ESP-IDF
Topic: [SOLVED] ESP_ERR_NVS_NOT_FOUND from nvs_get_blob() due to nvs_commit() race condition
Replies: 18
Views: 19714

Re: Random ESP_ERR_NVS_NOT_FOUND from nvs_get_blob() sometimes?

Hi Charger, Could you try to use different handle instances for `nvs_get_blob()` and `nvs_set_blob` or alternatively close the handle after the first `nvs_set_blob()`? Not sure whether that's related though. The error `ESP_ERR_NVS_NOT_FOUND` may in fact occur in different situations than "Id namespa...
by nickname
Thu May 28, 2020 6:52 am
Forum: ESP-IDF
Topic: [SOLVED] NVS encryption and nvs_get_str behaviour
Replies: 3
Views: 6147

Re: [SOLVED] NVS encryption and nvs_get_str behaviour

Hi @pollock694. If I'm not mistaken, the original poster used a wrong offset for writing the nvs keys into flash... If you're sure that you used the correct offset, then: Could you please post your IDF version, then code you use (if possible) and a console log? Some environment information (which ho...
by nickname
Thu May 21, 2020 6:46 am
Forum: General Discussion
Topic: Multiple definition of functions when trying to use regex
Replies: 11
Views: 11792

Re: Multiple definition of functions when trying to use regex

Hi @zliudr,

Do you mind trying the attached patch? I could reproduce your problem on IDF v3.3 and the patch solves it.

Thanks!
by nickname
Sat Sep 28, 2019 2:53 am
Forum: ESP-IDF
Topic: Pass array in FreeRTOS Queue
Replies: 2
Views: 5160

Re: Pass array in FreeRTOS Queue

Hi, I haven't tested it (yet, will do that tomorrow). But regarding the documentation, it's possible. Upon queue creation, you specify the size of each item in bytes. The queue will allocate the maximum amount of storage right from the beginning, no matter how many items are actually stored. Items p...