Search found 4 matches
- Tue Nov 12, 2024 9:55 pm
- Forum: ESP-IDF
- Topic: write_flash for big app takes too long and external watchdog IC resets chip
- Replies: 0
- Views: 546
write_flash for big app takes too long and external watchdog IC resets chip
Hello, I have attached to the reset gpio of the ESP32 to the mcu monitor TPS3828-33. And have XOR'ed GPIO12 and the RX pin of the ESP32 to the WDI pin of this IC. The RX pin is connected so that I can hopefully upload the firmware to the ESP32. This IC resets the ESP32 if there is no movement on the...
- Thu Jul 11, 2024 10:28 pm
- Forum: ESP-IDF
- Topic: [SOLVED] ESP_ERR_NVS_NOT_FOUND from nvs_get_blob() due to nvs_commit() race condition
- Replies: 18
- Views: 20281
Re: [SOLVED] ESP_ERR_NVS_NOT_FOUND from nvs_get_blob() due to nvs_commit() race condition
This is the function I use to store: int storage_write(uint8_t * tosave, size_t save_size){ nvs_handle_t NvsHandle; const char * save_key = "AGT"; console_printf("[I] storage.c storage_write: Saving \"%s\"\n", save_key); esp_err_t err = nvs_open(STORAGE_NAMESPACE, NVS_READWRITE, &NvsHandle); if (err...
- Thu Jul 11, 2024 10:09 pm
- Forum: ESP-IDF
- Topic: [SOLVED] ESP_ERR_NVS_NOT_FOUND from nvs_get_blob() due to nvs_commit() race condition
- Replies: 18
- Views: 20281
Re: [SOLVED] ESP_ERR_NVS_NOT_FOUND from nvs_get_blob() due to nvs_commit() race condition
I save in the NVS by doing:
esp_err_t err = nvs_set_blob(Storage, save_key, tosave, save_size);
and immediately after:
err = nvs_commit(Storage);
But I dont call nvs_close
esp_err_t err = nvs_set_blob(Storage, save_key, tosave, save_size);
and immediately after:
err = nvs_commit(Storage);
But I dont call nvs_close
- Fri Feb 09, 2024 1:13 am
- Forum: ESP-IDF
- Topic: [SOLVED] ESP_ERR_NVS_NOT_FOUND from nvs_get_blob() due to nvs_commit() race condition
- Replies: 18
- Views: 20281
Re: [SOLVED] ESP_ERR_NVS_NOT_FOUND from nvs_get_blob() due to nvs_commit() race condition
Hello, I think I am having this same issue. ESP_ERR_NVS_NOT_FOUND was happening to me because I was calling esp_reset() just after a write to the nvs. I am writing 1064 bytes using nvs_set_blob in a 0x14000 size unencrypted nvs partition with a single blob_key. I tried using CONFIG_SPI_FLASH_VERIFY_...