Skip to content

EEPROM library not saving or reading bytes #1095

Closed
@lonerzzz

Description

@lonerzzz

Hardware:

Board: ESP-WROOM-32
Core Installation/update date: 2017/11/26
IDE name: Arduino IDE
Flash Frequency: 40Mhz
Upload Speed: 115200

Description:

We recently received a shipment of manufactured boards that use the ESP-WROOM-32 module. The packaging of this module is different from the previous ESP-WROOM-32 that we had been using during development with markings for CE and FCC certifications now present. We are able write code to this module and to write to SPIFFs using the updater tool so flash writes are possible.

However, we are unable to either read or write successfully using the EEPROM library. With both read and write, no errors are generated and the esp_partition_write call in the commit() function is returning a 0/ESP_OK response. No errors occur, but subsequent attempts to read the flash just written always read as high bits giving 0xFF bytes and 0xFFFF shorts for example.

Is there a need for a new type of module definition with different partitions for the new ESP-WROOM-32 module? Currently the "ESP32 Dev Module" is the type we have been using.

Are there changes in IDF version that may have affected this?

Unfortunately we are totally stuck without the ability to write to flash from code.

Update: Also tried Preferences and they work fine so the issue appears to be isolated to the EEPROM library or the underlying IDF library being used. As well, the SPIFFS API is also unable to retrieve saved file contents. An update to latest version of the Arduino code as of Feb 10 also failed to eliminate the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions