How to erase flash memory from terminal
Posted: Fri Jan 18, 2019 1:28 am
Hi, guys! I'm having a big trouble in my board. When I upload my program it just restart over and over. I'm working with Arduino IDE and Mac OS Mojave. When I open my serial port it shows:
[Codebox]
rst:0xc (SW_CPU_RESET),boot:0x13 (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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:812
load:0x40078000,len:0
load:0x40078000,len:11572
entry 0x40078a5c
assertion "false && "item should have been present in cache"" failed: file "/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/nvs_flash/src/nvs_item_hash_list.cpp", line 85, function: void nvs::HashList::erase(size_t)
abort() was called at PC 0x4015a46b on core 0
Backtrace: 0x4008dcb4:0x3ffd12f0 0x4008de8f:0x3ffd1310 0x4015a46b:0x3ffd1330 0x401650f4:0x3ffd1360 0x401657ae:0x3ffd1380 0x40165add:0x3ffd13d0 0x40164ba0:0x3ffd1430 0x401646ca:0x3ffd1480 0x40164763:0x3ffd14a0 0x401647ae:0x3ffd14c0 0x400dd271:0x3ffd14e0 0x400d2fd0:0x3ffd1500 0x4015cdf3:0x3ffd1530
Rebooting...[/Codebox]
I was reading on the web that this issue could be solved by erasing the flash memory of the board before uploading the firmware. So, what do you guys recommend me? I'm stucked . Thanks!
[Codebox]
rst:0xc (SW_CPU_RESET),boot:0x13 (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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:812
load:0x40078000,len:0
load:0x40078000,len:11572
entry 0x40078a5c
assertion "false && "item should have been present in cache"" failed: file "/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/nvs_flash/src/nvs_item_hash_list.cpp", line 85, function: void nvs::HashList::erase(size_t)
abort() was called at PC 0x4015a46b on core 0
Backtrace: 0x4008dcb4:0x3ffd12f0 0x4008de8f:0x3ffd1310 0x4015a46b:0x3ffd1330 0x401650f4:0x3ffd1360 0x401657ae:0x3ffd1380 0x40165add:0x3ffd13d0 0x40164ba0:0x3ffd1430 0x401646ca:0x3ffd1480 0x40164763:0x3ffd14a0 0x401647ae:0x3ffd14c0 0x400dd271:0x3ffd14e0 0x400d2fd0:0x3ffd1500 0x4015cdf3:0x3ffd1530
Rebooting...[/Codebox]
I was reading on the web that this issue could be solved by erasing the flash memory of the board before uploading the firmware. So, what do you guys recommend me? I'm stucked . Thanks!