Skip to content

esp_partition_mmap fails with partitions larger than 3MB (IDFGH-107) #1184

@OtherCrashOverride

Description

@OtherCrashOverride

Using esp_partition_mmap to map a partition larger than 3MB results in failures. The following reproduces the issue:
https://github.com/OtherCrashOverride/esp32-flashtest

When the partition is:
storage, 0x40, 0x01, 0x100000, 0x300000 the operation is successful.

When the partion is:
storage, 0x40, 0x01, 0x100000, 0x400000 an error is returned (ESP_ERR_NO_MEM).

When the partition is:
storage, 0x40, 0x01, 0x100000, 0x500000 a "double exception" occurs.

The test hardware is an ESP-WROOM32 with the flash chip removed and replaced with W25Q128JVSIQ (16MB). The flash is correctly detected for flash and boot:

I (48) boot: SPI Speed      : 40MHz
I (49) boot: SPI Mode       : DIO
I (53) boot: SPI Flash Size : 16MB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions