Skip to content

Default partition table for Arduino_nano_esp32 board doesn't work #13

Description

@BjarneBitscrambler

When using this library with Arduino_nano_esp32 board, several variants of the Flash Partition table do not work. I suspect it has something to do with the SPIFFs, used by SensESP to store configuration data.

The Arduino_nano_esp32 has a default partition table (using SPIFFs) called app3M_spiffs9M_fact512k_16MB (https://github.com/espressif/arduino-esp32/tree/master/tools/partitions) , which looks like:

# Name,   Type, SubType,  Offset,   Size,     Flags
nvs,      data, nvs,        0x9000,   0x5000,
otadata,  data, ota,        0xe000,   0x2000,
app0,     app,  ota_0,     0x10000, 0x300000,
app1,     app,  ota_1,    0x310000, 0x300000,
spiffs,   data, spiffs,   0x610000, 0x960000,
factory,  app,  factory,  0xF70000,  0x80000,
coredump, data, coredump, 0xFF0000,  0x10000,

This partition table works:

nvs,      data, nvs,        0x9000,   0x5000,
otadata,  data, ota,        0xe000,   0x2000,
app0,     app,  ota_0,     0x10000, 0x1e0000,
app1,     app,  ota_1,    0x1F0000, 0x1e0000,
spiffs,   data, spiffs,   0x3d0000, 0x20000,
coredump, data, coredump, 0x3F0000,  0x10000,

Increasing the app0 and app1 sizes slightly moves the spiffs partition past 0x400000. This gives the following error on startup (before setup(): E (7812) SPIFFS: mount failed, -10025

#nvs,      data, nvs,        0x9000,   0x5000,
#otadata,  data, ota,        0xe000,   0x2000,
#app0,     app,  ota_0,     0x10000, 0x200000,
#app1,     app,  ota_1,    0x210000, 0x200000,
#spiffs,   data, spiffs,   0x410000, 0x20000,
#coredump, data, coredump, 0x430000,  0x10000,

Currently have the working partition table included in this library, for use with a nano board.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions