Max number of partitions that can be mmaped

vvb333007
Posts: 72
Joined: Wed Jul 31, 2024 5:53 am
Location: Thailand
Contact:

Max number of partitions that can be mmaped

Postby vvb333007 » Sun Jun 28, 2026 4:00 am

Hello,

I'd like to mmap() 5 partitions at one time on ESP32-S3. Total partitions size is 8MiB. Am I correct in assumption that ESP32S3 MMU can manage up to 128*64KiB of mmaped data pages at maximum?

My aim is to mmap() 5 partitions and use them as data arrays. The TOTAL size of all partitions is 8Mb. Is this doable?

Also:

Documentation says that there is 24 MiB of INSN virtual space and 8MiB of data. Since my SoC has 8MB of PSRAM - where I can mmap my partitions? Or I completely misumderstood docs.

Docs says that there are 384 records in MMU which yield 24MiB of instruction virtual addresses. The rest (8MiB is for DATA). PSRAM is mmaped to the DATA region. Should I mmap my partitions to the INSN bus? Yes, I'll loose ability for byte-access but it is ok for my project.


Can someone explain this MMU magic?
Thanks!
Slava.

Who is online

Users browsing this forum: Bing [Bot], Bytespider, ChatGPT-User, esp32.damiano, PerplexityBot, Qwantbot and 5 guests