Flash base address

kostyan5
Posts: 50
Joined: Mon Mar 06, 2017 3:16 pm

Flash base address

Postby kostyan5 » Mon Mar 06, 2017 3:23 pm

In ESP8266, flash base address was 0x40200000. What is the flash base address for ESP32?

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Flash base address

Postby ESP_igrr » Mon Mar 06, 2017 4:24 pm

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.

kostyan5
Posts: 50
Joined: Mon Mar 06, 2017 3:16 pm

Re: Flash base address

Postby kostyan5 » Wed Mar 08, 2017 7:46 pm

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.

Who is online

Users browsing this forum: jsmith56x, sterisa and 274 guests