[FLASH] User data storage

piotrva
Posts: 9
Joined: Mon Jan 05, 2015 7:45 am

[FLASH] User data storage

Postby piotrva » Tue Jul 07, 2015 5:32 am

Dear all,

I wanted to ask which sectors of flash memory can be used for user data storage (ex. configuration, login/password). For now I'm using external memory, but it would be less costly to use some sectors of the on-board flash. I tried to write data in some sectors written with blank.bin, but finally 2 pcs of ESP8266 module were bricked (no possibility to download any application using download tool).

I would be very grateful for a complete memory map and some example codes, explaining how to safely use on-board flash to store custom data.

The purpose is to have a device, configured using web interface (available via AP) and then store data in the flash in order the device to connect in ST mode automatically and also save user password to protect config. changes.

Such software I have prepared but with usage of external memory.

Thank you in advice for any help.

datltq
Posts: 7
Joined: Wed Jun 10, 2015 2:55 pm

Re: [FLASH] User data storage

Postby datltq » Tue Jul 07, 2015 11:34 am

Hi,

The memory map can be referred here:
https://github.com/esp8266/esp8266-wiki/wiki/Memory-Map

Also, in the "2A-ESP8266__IOT_SDK_User_Manual__EN", there mentioned a flash area called "user data" which is safe to read and write your own data.

For the problem of bricking device when overwriting blank.bin, I don't think it could bricks the device. It seems downloading flash is handled by internal ROM, which is not write-able by any chances. Could somebody confirm this?

Dat.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: [FLASH] User data storage

Postby ESP_Faye » Tue Jul 07, 2015 3:49 pm

Hi,

Flash map please refer to documentation 2A-ESP8266__IOT_SDK_User_Manual.

Flash read/write with protection please refer to documentation 99A-ESP8266__Flash_RW_Operation.

Thanks for your interest in Espressif Systems and ESP8266 !

yogasuhas

Re: [FLASH] User data storage

Postby yogasuhas » Fri Apr 15, 2016 4:29 am

Espressif_Faye wrote:Hi,

Flash map please refer to documentation 2A-ESP8266__IOT_SDK_User_Manual.

Flash read/write with protection please refer to documentation 99A-ESP8266__Flash_RW_Operation.

Thanks for your interest in Espressif Systems and ESP8266 !


Hi,

Requested topics are not available on the URLs.
Please share latest information regarding writing user data on flash.

Thank you!

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: [FLASH] User data storage

Postby ESP_Faye » Fri Apr 15, 2016 10:25 am

Hi,

Sorry that the url is changed, please try it again.

Flash map please refer to documentation 2A-ESP8266__IOT_SDK_User_Manual.

Flash read/write with protection please refer to documentation 99A-ESP8266__Flash_RW_Operation.

Thanks for your interest in Espressif Systems and ESP8266 !

yogasuhas

Re: [FLASH] User data storage

Postby yogasuhas » Fri Apr 15, 2016 9:31 pm

Hi,

Thank you! for the support, i found documents are in Chinese language!
Do i get English version one.

Best regards!

Lurch
Posts: 7
Joined: Thu Jul 02, 2015 4:59 am

Re: [FLASH] User data storage

Postby Lurch » Fri Apr 15, 2016 9:43 pm

Look further down the page. After the chnese versions are the english versions (_EN.pdf ending)

Lurch
Posts: 7
Joined: Thu Jul 02, 2015 4:59 am

Re: [FLASH] User data storage

Postby Lurch » Fri Apr 15, 2016 9:50 pm

Look further down the page. After the chnese versions are the english versions (_EN.pdf ending)
2A is there in english, but 99A-ESP8266__Flash_RW_Operation__EN_v0.2 seems to be missing. Maybe the spelling is different now.

NASATEC
Posts: 2
Joined: Wed Sep 14, 2016 12:10 am

Re: [FLASH] User data storage

Postby NASATEC » Wed Sep 14, 2016 12:47 am

Hello,
We are looking the way to turn on ESP8266 and automatically connect on ST mode.
Could you please help us?

Who is online

Users browsing this forum: No registered users and 296 guests