chilipeppr / workspace-esp32-lua

Workspace for ESP32 running Lua so you can easily edit/upload Lua code to your ESP32 devices. This is effectively a NodeMCU for ESP32.
25 stars 10 forks source link

ESP32 Firmware for Lua crashing on boot #2

Closed joysfera closed 5 years ago

joysfera commented 5 years ago
Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:8
load:0x3fff0010,len:4436
load:0x40078000,len:11080
load:0x40080000,len:252
entry 0x40080034
I (45) boot: ESP-IDF v3.0-dev-20-g9b955f4c 2nd stage bootloader
I (45) boot: compile time 15:47:33
I (46) boot: Enabling RNG early entropy source...
I (64) boot: SPI Speed      : 40MHz
I (77) boot: SPI Mode       : DIO
I (89) boot: SPI Flash Size : 4MB
I (101) boot: Partition Table:
I (113) boot: ## Label            Usage          Type ST Offset   Length
I (135) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (159) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (182) boot:  2 factory          factory app      00 00 00010000 00100000
I (205) boot:  3 spiffs           unknown          c2 00 00110000 002f0000
I (228) boot: End of partition table
I (241) boot: Disabling RNG early entropy source...
I (258) boot: Loading app partition at offset 00010000
I (1473) boot: segment 0: paddr=0x00010018 vaddr=0x00000000 size=0x0ffe8 ( 65512) 
I (1473) boot: segment 1: paddr=0x00020008 vaddr=0x3f400010 size=0x20b94 (134036) map
I (1490) boot: segment 2: paddr=0x00040ba4 vaddr=0x3ffc0000 size=0x0209c (  8348) load
I (1520) boot: segment 3: paddr=0x00042c48 vaddr=0x40080000 size=0x00400 (  1024) load
I (1544) boot: segment 4: paddr=0x00043050 vaddr=0x40080400 size=0x160dc ( 90332) load
I (1613) boot: segment 5: paddr=0x00059134 vaddr=0x400c0000 size=0x00064 (   100) load
I (1614) boot: segment 6: paddr=0x000591a0 vaddr=0x00000000 size=0x06e68 ( 28264) 
I (1630) boot: segment 7: paddr=0x00060010 vaddr=0x400d0018 size=0x81248 (528968) map
I (1656) cpu_start: Pro cpu up.
I (1668) cpu_start: Starting app cpu, entry point is 0x40080fc4
I (1689) cpu_start: App cpu up.
I (1701) heap_alloc_caps: Initializing. RAM available for dynamic allocation:
I (1724) heap_alloc_caps: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (1744) heap_alloc_caps: At 3FFC90E8 len 00016F18 (91 KiB): DRAM
I (1765) heap_alloc_caps: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (1787) heap_alloc_caps: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1808) heap_alloc_caps: At 400964DC len 00009B24 (38 KiB): IRAM
I (1829) cpu_start: Pro cpu start user code
I (1896) cpu_start: Starting scheduler on APP CPU.

Mounting flash filesystem...
assertion "false && "item should have been present in cache"" failed: file "/home/ubuntu/workspace/nodemcu-firmware-esp32/sdk/esp32-esp-idf/components/nvs_flash/src/nvs_item_hash_list.cpp", line 85, function: void nvs::HashList::erase(size_t)
abort() was called at PC 0x400db69b on core 0

Backtrace: 0x40089a8c:0x3ffcc8a0 0x40089b8b:0x3ffcc8c0 0x400db69b:0x3ffcc8e0 0x40146cb8:0x3ffcc910 0x401461ee:0x3ffcc930 0x401464c9:0x3ffcc970 0x40145828:0x3ffcc9c0 0x40145487:0x3ffcca10 0x401454d7:0x3ffcca30 0x400f712b:0x3ffcca50 0x400d1c2e:0x3ffcca90

Rebooting...
joysfera commented 5 years ago

Ah, erase_flash helped.