[FLASH] User data storage
[FLASH] User data storage
Postby piotrva » Tue Jul 07, 2015 5:32 am
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.
Re: [FLASH] User data storage
Postby datltq » Tue Jul 07, 2015 11:34 am
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.
Re: [FLASH] User data storage
Postby ESP_Faye » Tue Jul 07, 2015 3:49 pm
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 !
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!
Re: [FLASH] User data storage
Postby ESP_Faye » Fri Apr 15, 2016 10:25 am
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 !
Re: [FLASH] User data storage
Postby yogasuhas » Fri Apr 15, 2016 9:31 pm
Thank you! for the support, i found documents are in Chinese language!
Do i get English version one.
Best regards!
Re: [FLASH] User data storage
Postby Lurch » Fri Apr 15, 2016 9:50 pm
2A is there in english, but 99A-ESP8266__Flash_RW_Operation__EN_v0.2 seems to be missing. Maybe the spelling is different now.
Who is online
Users browsing this forum: No registered users and 296 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.