Skip to content

Resize partitions to fit 4MB by default #2

@Everspace

Description

@Everspace

I was spinning this up for the first time, and I'm very new at electronics and working with these microcontrollers.

I ran into some problems initially flashing my esp32 eventually to learn that the partition table was configured too big for the default 4MB on a ESP32-WROOM. If you have a larger one apparently it's just a warning so targeting the smallest size would allow for anything larger to boot up.

I ended up changing the partition.csv table to the following, and editing a few things in sdkconfig to point to 4MB as the flash size. It's working now but I am unsure if these were the actually correct way to go about things.

Another thing I enabled was build optimizations which seemed to have not been toggled on, which can reduce the size of the resultant binaries.

#Name,    Type,  Subtype,   Offset,   Size,     Flags
otadata,  data,  ota,       0x9000,   0x2000,
nvs,      data,  nvs,       ,         0x4000,
ota_0,    app,   ota_0,     0x10000,  1M,
ota_1,    app,   ota_1,     ,         1M,
spiffs,   data,  spiffs,    ,         500K,

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