<div dir="ltr"><div>The following is the log after resetting, does this indicate the NVS flash is corrupted?</div><div><br></div><div>I (630) esp32wifi: Powering up WIFI driver<br>I (640) wifi: wifi driver task: 3ffd05c4, prio:23, stack:3584, core=0<br>I (650) wifi: wifi firmware version: 771f1dc<br>I (650) wifi: config NVS flash: enabled<br>I (650) wifi: config nano formating: disabled<br>I (660) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE<br>I (670) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE<br>I (690) wifi: Init dynamic tx buffer num: 16<br>I (690) wifi: Init data frame dynamic rx buffer num: 16<br>I (690) wifi: Init management frame dynamic rx buffer num: 16<br>I (690) wifi: Init static rx buffer size: 2212<br>I (700) wifi: Init static rx buffer num: 4<br>I (700) wifi: Init dynamic rx buffer num: 16<br>W (1380) phy_init: failed to load RF calibration data (0xffffffff), falling back to full calibration<br>I (1540) phy: phy_version: 3910, c0c45a3, May 21 2018, 18:07:06, 0, 2<br>assertion "usedEntries == newPage->getUsedEntryCount()" failed: file "/home/openvehicles/build/esp-idf/components/nvs_flash/src/nvs_pagemanager.cpp", line 175, function: esp_err_t nvs::PageManager::requestNewPage()<br>abort() was called at PC 0x401018ef on core 0<br><br>Backtrace: 0x400935d3:0x3ffd02b0 0x4009372b:0x3ffd02d0 0x401018ef:0x3ffd02f0 0x4011cc77:0x3ffd0320 0x4011b8f7:0x3ffd0340 0x4011b6a3:0x3ffd03a0 0x401d75e3:0x3ffd03e0 0x401d7a0f:0x3ffd0420 0x401e296a:0x3ffd0450 0x401e2a04:0x3ffd0480 0x401e2cfa:0x3ffd04b0 0x401e2e67:0x3ffd04e0 0x4008a60c:0x3ffd0500<br><br>Rebooting...<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 12 May 2023 at 20:13, Derek Caudwell <<a href="mailto:d.caudwell@gmail.com">d.caudwell@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Recently my 12V battery died, after replacing it the OVMS unit reverted to the factory reset state. Unfortunately it kept crashing in this state with the following:<div><br></div><div><p class="MsoNormal" style="margin:0cm;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:10pt;font-family:"Cascadia Mono";color:rgb(0,34,0);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Last boot was 101 second(s) ago
Time at boot: 1970-01-01 00:03:16 GMT This is reset #3 since last power cycle
Detected boot reason: EarlyCrash (12/12) Reset reason: Exception/panic (4)
Crash counters: 3 total, 3 early Last crash: LoadProhibited exception on core 1
Registers: PC : 0x4008c341 PS : 0x00060030 A0 : 0x8013cc48 A1 : 0x3ffe63d0 A2 :
0x00000000 A3 : 0xfffffffc A4 : 0x000000ff A5 : 0x0000ff00 A6 : 0x00ff0000 A7 :
0xff000000 A8 : 0x00000000 A9 : 0x00000008 A10 : 0x3ffeba1d A11 : 0x3f417d87
A12 : 0x3ffeba25 A13 : 0x3ffe684c A14 : 0x47006c6c A15 : 0x47006c6c SAR :
0x00000010 EXCCAUSE: 0x0000001c EXCVADDR: 0x00000000 LBEG : 0x4008c341 LEND :
0x4008c351 LCOUNT : 0xffffffff Current task on core 0: wifi, 1176 stack bytes
free Current task on core 1: OVMS NetMan, 6420 stack bytes free Backtrace:
0x4008c341 0x4013cc45 0x4013ffbe 0x4013fff5 0x4011439b 0x40184ee2 0x4018526b
0x40185ac8 0x40189829 0x401311ed 0x40132221 0x401311ed 0x40131597 0x4013168a
0x40132ff1 0x40133272 0x4012f432 0x4012330f 0x401233bd Version:
3.3.003-423-g68d9aee8/ota_0/main (build idf v3.3.4-849-g6e214dc33 Apr 19 2023
00:11:25) Hardware: OVMS WIFI BLE BT cores=2 rev=ESP32/1 </span><span style="font-size:12pt;font-family:"Times New Roman",serif"></span></p>
<div class="MsoNormal" align="center" style="margin:15pt 0cm;text-align:center;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">
<hr size="0" width="100%" noshade style="color:rgb(51,51,51)" align="center">
</span></div>
<p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:10pt;line-height:107%;font-family:"Cascadia Mono";color:rgb(0,34,0);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Hardware: OVMS WIFI BLE BT cores=2 rev=ESP32/1 Firmware:
3.3.003-423-g68d9aee8/ota_0/main (build idf v3.3.4-849-g6e214dc33 Apr 19 2023
00:11:25) Running partition: ota_0 Boot partition: ota_0 Factory image: 3.2.002
OTA_O image: 3.3.003-423-g68d9aee8 OTA_1 image: 3.3.003-419-gfbbf3c0d</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:10pt;line-height:107%;font-family:"Cascadia Mono";color:rgb(0,34,0);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Removing the SD card </span><span style="color:rgb(0,34,0);font-family:"Cascadia Mono";font-size:13.3333px">and trying a S2 reset </span><span style="color:rgb(0,34,0);font-family:"Cascadia Mono";font-size:10pt">made no difference, so I proceeded to run the following commands to factory reset and boot from the factory firmware:</span></p><pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:9pt;font-family:Consolas;color:rgb(64,64,64)">esptool.py --chip esp32 --port COM3 --baud 921600 erase_region 0xC10000 0x100000</span></pre><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:10pt;line-height:107%;font-family:"Cascadia Mono";color:rgb(0,34,0);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"> </span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:10pt;line-height:107%;font-family:"Cascadia Mono";color:rgb(0,34,0);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">
</span></p><p class="MsoNormal" style="margin:0cm;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:9pt;font-family:Consolas;color:rgb(64,64,64)">esptool.py --chip esp32 --port COM3
--baud 921600 erase_region 0xd000 0x2000</span></p><p class="MsoNormal" style="margin:0cm;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:9pt;font-family:Consolas;color:rgb(64,64,64)"><br></span></p><p class="MsoNormal" style="margin:0cm;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:9pt;font-family:Consolas;color:rgb(64,64,64)">Both ran successfully however the unit is now no longer providing the factory wifi access point. What should I try next to restore it?</span></p><p class="MsoNormal" style="margin:0cm;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:9pt;font-family:Consolas;color:rgb(64,64,64)"><br></span></p><p class="MsoNormal" style="margin:0cm;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:9pt;font-family:Consolas;color:rgb(64,64,64)">Cheers Derek</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:10pt;line-height:107%;font-family:"Cascadia Mono";color:rgb(0,34,0);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><br></span></p></div></div>
</blockquote></div></div>