Crash on boot (even with BareMinimum code)

jamesbaber
Posts: 2
Joined: Thu Apr 19, 2018 10:53 am

Crash on boot (even with BareMinimum code)

Postby jamesbaber » Thu Apr 19, 2018 11:10 am

Hi,
My code project was working fine but when I came back to it at a later date (without changing anything) it no longer booted.
The serial console shows that its crashing on startup with this error:

Code: Select all

assertion "entry < ENTRY_COUNT" failed: file "/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/nvs_flash/src/nvs_page.hpp", line 188, function: uint32_t nvs::Page::getEntryAddress(size_t) const
abort() was called at PC 0x400d1c7b on core 0

Backtrace: 0x400876e0:0x3ffc6500 0x400878bb:0x3ffc6520 0x400d1c7b:0x3ffc6540 0x400d464b:0x3ffc6570 0x400d4c2f:0x3ffc6590 0x400d5885:0x3ffc65e0 0x400d3f16:0x3ffc6640 0x400d3b8a:0x3ffc6690 0x400d3c23:0x3ffc66b0 0x400d3c6e:0x3ffc66d0 0x400e3ba4:0x3ffc66f0 0x400e3b53:0x3ffc6710 0x400d2806:0x3ffc6740
This references NVS which I am using in my project (but haven't touched recently). Next, I tried to load the blink example to the chip. That gave this similar error:

Code: Select all

assertion "entry < ENTRY_COUNT" failed: file "/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/nvs_flash/src/nvs_page.hpp", line 188, function: uint32_t nvs::Page::getEntryAddress(size_t) const
abort() was called at PC 0x400d128f on core 0

Backtrace: 0x40087234:0x3ffc6350 0x4008740f:0x3ffc6370 0x400d128f:0x3ffc6390 0x400e3d5b:0x3ffc63c0 0x400e4047:0x3ffc63e0 0x400e4b69:0x3ffc6430 0x400e3956:0x3ffc6490 0x400e37da:0x3ffc64e0 0x400e3873:0x3ffc6500 0x400e38be:0x3ffc6520 0x400e10a4:0x3ffc6540 0x400e1053:0x3ffc6560 0x400d1b7a:0x3ffc6590
Where the backtrace is different (Exception decoder has (seemingly) completely different results too). My first guess was the NVS data could be corrupted but I am not sure how I could prove or fix this, especially seeing as I can't just upload code to clear it.

I am using the ESP-WROOM-32.
Any help or tips would be appreciated!

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Crash on boot (even with BareMinimum code)

Postby kolban » Fri Apr 20, 2018 2:07 am

Maybe erase the flash memory using the "esptool erase_flash" option? That should null out NVS and reset your ESP32 to the default.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

jamesbaber
Posts: 2
Joined: Thu Apr 19, 2018 10:53 am

Re: Crash on boot (even with BareMinimum code)

Postby jamesbaber » Fri Apr 20, 2018 6:58 am

I've tried that since posting this and the command has no output (which is probably fine) but it doesn't help the problem, I'm still getting the NVS related errors.
Is there anything else I can try?

Thanks!

Who is online

Users browsing this forum: No registered users and 77 guests