Page 1 of 1

Flash base address

Posted: Mon Mar 06, 2017 3:23 pm
by kostyan5
In ESP8266, flash base address was 0x40200000. What is the flash base address for ESP32?

Re: Flash base address

Posted: Mon Mar 06, 2017 4:24 pm
by ESP_igrr
In ESP32, flash is mapped into the CPU address space using Flash MMU, which can map arbitrary 64k blocks of Flash into instruction and data address spaces. Please see the technical reference manual for a complete description.

In software, you can use spi_flash_mmap and esp_partition_mmap functions to set up MMU entries.

Re: Flash base address

Posted: Wed Mar 08, 2017 7:46 pm
by kostyan5
mmap is for read-only access ("This mapping works only for read operations, it is not possible to modify contents of flash memory by writing to mapped memory region.").

I'm using part of flash for logging data. It looks like the most correct way is to use partition api.