arduino-esp32 icon indicating copy to clipboard operation
arduino-esp32 copied to clipboard

the bin which contains nvs or eeprom can't be download by espressif download tools

Open casitelwithdean opened this issue 2 years ago • 0 comments

Board

ESP32-WROOM

Device Description

ESP32-WROOM

Hardware Configuration

ESP32-WROOM

Version

v2.0.4

IDE Name

arduino

Operating System

win10

Flash frequency

80M

PSRAM enabled

no

Upload speed

921600

Description

I wrote a code which contains nvs(also tried eeprom) in arduino,and i exported the bin in arduino.Then I use espressif download tools to program these bins.(totally four: 1.\tools\partitions\default.bin 0x8000 2.\tools\partitions\boot_app0.bin 0xe000 3.\tools\sdk\esp32\bin\bootloader_qio_80m.bin 0x1000 4.nvs.ino.esp32.bin 0x10000) But it will reset and reset. If the code doesn't contain nvs or eeprom ,it will be ok. So would anyone please tell me how to fix this problem? THANKS!

Sketch

THIS IS MY CODE:
#include "esp_system.h"
#include "nvs_flash.h"
#include "nvs.h"
void setup() {
  Serial.begin(9600);
//
  esp_err_t err = nvs_flash_init();
    if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) {
        ESP_ERROR_CHECK(nvs_flash_erase());
        err = nvs_flash_init();
    }
    ESP_ERROR_CHECK( err );
}
void loop()
{
}

Debug Message

Rebooting...
E (79) partition: No MD5 found in partition table
E (80) partition: load_partitions returned 0x105

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • [X] I confirm I have checked existing issues, online documentation and Troubleshooting guide.

casitelwithdean avatar Sep 13 '22 01:09 casitelwithdean