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
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, 0x300000the operation is successful.When the partion is:
storage, 0x40, 0x01, 0x100000, 0x400000an error is returned (ESP_ERR_NO_MEM).When the partition is:
storage, 0x40, 0x01, 0x100000, 0x500000a "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: