Hi, Good Morning,
Recently we have been facing said issue in 5 devices among 200 devices deployed on the site.
So, due to that we are not able to connect with the Wi-Fi network and the system goes down...
For the said issue, As we know, the error is generated when the partition is truncated. we have checked our NVS Partition data and it is found ok.
For reference, a bin file starting from 0x9000 to 0x5000 has been attached.
Please help us to find the cause of the error as soon as possible...
As it is not possible to attach a bin file I have changed the extension to .txt.
Failed to initialize NVS:Error:4357 - ESP_ERR_NVS_NOT_ENOUGH_SPACE
-
- Posts: 2
- Joined: Fri Nov 24, 2023 6:04 am
Failed to initialize NVS:Error:4357 - ESP_ERR_NVS_NOT_ENOUGH_SPACE
- Attachments
-
- nvs5to922.txt
- (20 KiB) Downloaded 320 times
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Failed to initialize NVS:Error:4357 - ESP_ERR_NVS_NOT_ENOUGH_SPACE
I would say your nvs has been corrupted. If you have this many issues among a small number of devices, I'd say there is something corrupting the partition. The most common cause of this is going backwards in IDF versions when upgrading firmware.
If you have physical access to the devices, try erasing the nvs partition (either with nvs_flash_erase or esptool erase_region. If that works, and the rest of your flash is uncorrupted, then it becomes more likely it is something in the code corrupting the data rather than cosmic rays.
Note that the error may also be correct. nvs is copy on write, so it needs twice the space for every write. If you have a large EEPROM blob or string in there, you may in fact be out of space.
If you have physical access to the devices, try erasing the nvs partition (either with nvs_flash_erase or esptool erase_region. If that works, and the rest of your flash is uncorrupted, then it becomes more likely it is something in the code corrupting the data rather than cosmic rays.
Note that the error may also be correct. nvs is copy on write, so it needs twice the space for every write. If you have a large EEPROM blob or string in there, you may in fact be out of space.
-
- Posts: 2
- Joined: Fri Nov 24, 2023 6:04 am
Re: Failed to initialize NVS:Error:4357 - ESP_ERR_NVS_NOT_ENOUGH_SPACE
Hi, Thanks for your reply...
My concern is why it has happened only in 5 devices...
Yes, that might be possible that twice of the space is not available, let me check this also...
My concern is why it has happened only in 5 devices...
Yes, that might be possible that twice of the space is not available, let me check this also...
Who is online
Users browsing this forum: No registered users and 68 guests