Is it possible to read data from the flash memory at the given addresses during the operation of the ESP32 firmware?

irgibon
Posts: 7
Joined: Thu May 23, 2019 11:05 am

Is it possible to read data from the flash memory at the given addresses during the operation of the ESP32 firmware?

Postby irgibon » Thu Aug 01, 2019 1:41 pm

Hello!

Is it possible to read data from the flash memory at the given addresses during the operation of the ESP32 firmware? The data is in the area 0x0000 - 0x7FFF. Read the data should the same ESP32 microcontroller which is run from flash memory.

Thanks for the answer

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Is it possible to read data from the flash memory at the given addresses during the operation of the ESP32 firmware?

Postby WiFive » Thu Aug 01, 2019 7:24 pm

Yes. Do you mean from the same flash chip the firmware is on? Are you talking about a relative address within a partition, because the bootloader is in the absolute address range you mentioned.

irgibon
Posts: 7
Joined: Thu May 23, 2019 11:05 am

Re: Is it possible to read data from the flash memory at the given addresses during the operation of the ESP32 firmware?

Postby irgibon » Fri Aug 02, 2019 2:15 pm

Thanks for the answer. Yes, I meant it. I need to read data from the same flash chip with which the ESP32 microcontroller loads. I have to read the data from the first sector of this chip located at addresses 0x0000 - 0x8000. Read data is pre-written there by the STM32 microcontroller before turning on the ESP32.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Is it possible to read data from the flash memory at the given addresses during the operation of the ESP32 firmware?

Postby WiFive » Fri Aug 02, 2019 7:06 pm

Sector size is 0x1000 and while the first sector is only used for secure boot, the bootloader has to be at the second sector starting at 0x1000 so you can't write anything there.

Who is online

Users browsing this forum: No registered users and 78 guests