Sorry for my english. I was helped by Google Translate
Today I ran into a problem. My board with ESP32 has ceased to start. The message "assertion "entry < ENTRY_COUNT" failed" comes to the serial port. I guess it happened because the board was powered by a battery. At the critical battery discharge, an error occurred in the NVS. As a result, the microcontroller cyclically reboots.
What can I do to make the controller work again?
Now I cleaned the project, left only the app_main and rebuilt it.
Full error message from the serial port:
assertion "entry < ENTRY_COUNT" failed: file "C:/esp32/msys32/home/x8973/esp/esp-idf/components/nvs_flash/src/nvs_page.hpp", line 188, function: uint32_t nvs::Page::getEntryAddress(size_t) const
abort() was called at PC 0x400d2e2b on core 0
Backtrace: 0x40086e6c:0x3ffc7800 0x40087043:0x3ffc7820 0x400d2e2b:0x3ffc7840 0x400e0e5b:0x3ffc7870 0x400e1112:0x3ffc7890 0x400e0aea:0x3ffc78d0 0x400e06f0:0x3ffc7930 0x400e057e:0x3ffc7980 0x400e0607:0x3ffc79a0 0x400e0632:0x3ffc79c0 0x400d2d9f:0x3ffc79e0 0x400d161e:0x3ffc7a00
Error "assertion "entry < ENTRY_COUNT" failed" on startup
Re: Error "assertion "entry < ENTRY_COUNT" failed" on startup
Could you please do the following:
1) Read the contents of NVS partition using esptool.py
2) send the binary file by email to ivan at espressif.
3) use esptool to erase flash memory contents (or just the NVS partition)
4) upload the application again (if you have erased all flash memory contents)
1) Read the contents of NVS partition using esptool.py
2) send the binary file by email to ivan at espressif.
3) use esptool to erase flash memory contents (or just the NVS partition)
4) upload the application again (if you have erased all flash memory contents)
Re: Error "assertion "entry < ENTRY_COUNT" failed" on startup
Thanks for the answer. The problem is solved.
Reloading the partition table did not help. I cleaned the memory with esptool.py flash_erase, and then downloaded the firmware again. Of course, all the data in the NVS were lost, but the controller started working again.
Why could this happen? I have a periodical record in NVS, but it always happens in the same entry. How to protect yourself against such a situation in the future?
Reloading the partition table did not help. I cleaned the memory with esptool.py flash_erase, and then downloaded the firmware again. Of course, all the data in the NVS were lost, but the controller started working again.
Why could this happen? I have a periodical record in NVS, but it always happens in the same entry. How to protect yourself against such a situation in the future?
Re: Error "assertion "entry < ENTRY_COUNT" failed" on startup
Excuse me, yesterday I did not wait for your answer and tried to solve the problem myself. Therefore, I can not send the contents of the NVS section. However, if the problem recurs, I will immediately do it.
Who is online
Users browsing this forum: No registered users and 134 guests