Compiling an ESP32 memory map: am I correct regarding readable/writeable/executable regions?

outportasomebinary
Posts: 6
Joined: Tue Jun 03, 2025 2:23 pm

Compiling an ESP32 memory map: am I correct regarding readable/writeable/executable regions?

Postby outportasomebinary » Fri Aug 15, 2025 4:08 pm

Hello, I have been asked to compile a memory map for an ESP32 project. I understand how the flash memory is laid out for my project. However, there is another aspect I have been asked to include in this memory map: "if each memory region is readable, writeable and/or executable".

My question is regarding what to say for each region about the read/write/execute access. Because isn't everything in the flash memory r/w access? I can use esptool to write anything to the flash at any address, if I am not mistaken. Then whether to put "x" (executable) access simply depends on common sense - if it's code that is stored, sure, we execute stuff from that memory address.

MicroController
Posts: 2661
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Compiling an ESP32 memory map: am I correct regarding readable/writeable/executable regions?

Postby MicroController » Fri Aug 15, 2025 6:00 pm

Are you only concerned with flash or actually (also) asked about RAM?

outportasomebinary
Posts: 6
Joined: Tue Jun 03, 2025 2:23 pm

Re: Compiling an ESP32 memory map: am I correct regarding readable/writeable/executable regions?

Postby outportasomebinary » Mon Aug 18, 2025 6:43 am

Are you only concerned with flash or actually (also) asked about RAM?
Good question - "a memory map where the code and data is located inside the device" (which is what I am being asked for) is something I interpret as flash memory.

Who is online

Users browsing this forum: No registered users and 15 guests