[Answered]: MMU and un-mapped flash entry numbers

User avatar
Posts: 1214
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

[Answered]: MMU and un-mapped flash entry numbers

Postby kolban » Sat Feb 24, 2018 11:52 pm

Using the language in the ESP32 technical reference relating to MMU ... for flash we have 256 entries where each entry corresponds to a 64K range of address space. We can map an entry to a corresponding 64K of flash storage. Each entry in the MMU table consists of:

8 bits of flash storage page identity
1 bit of MMU table entry defined/undefined 0 = defined, 1 = undefined.

With this background, here comes my question.

If I access an address in storage in the ESP32 that is governed by the MMU flash mapping and the corresponding entry for that region of memory is flagged as undefined (control bit is 1), what ... if anything ... does that mean? Will an exception be thrown? Is there some form of "implicit" mapping?
Last edited by kolban on Sun Feb 25, 2018 3:52 am, edited 1 time in total.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Posts: 1438
Joined: Thu Nov 26, 2015 4:08 am

Re: MMU and un-mapped flash entry numbers

Postby ESP_Sprite » Sun Feb 25, 2018 3:48 am

If I recall correctly, the flash cache will throw an interrupt, which in normal ESP-IDF invokes the panic handler.

Who is online

Users browsing this forum: No registered users and 3 guests