Flash-Map 4096KB User/System param

.Linux.
Posts: 1
Joined: Thu Feb 04, 2016 7:51 pm

Flash-Map 4096KB User/System param

Postby .Linux. » Thu Feb 04, 2016 8:06 pm

Hi Guys,

I´m currently trying to implement Firmwareupdates via WiFi for my Project.
This i have made using a own client and a tcp server on the ESP.. working well, no problems.

But now i am a little bit confused because the memory map on the documentation.
Like in Thread (viewtopic.php?f=65&t=1480) i have to flash blank.bin to 0xFE000 and 0x3FE000, why that?
2A_ESP8266_SDK Getting_Started_Guide_EN_v1.5_20151118_2.pdf on site 26 shows me the memory layout. The blank.bin at starts at 0xFE000 and has 4096 Bytes.. what is the reason for this?
I thought the User param is only for storing user-settings via system_param_save_with_protect() ?
What data is saved in this two 4KB blocks?

The second question is this:
the bootloader 1.5 shows me "SPI Flash Site & Map: 32Mbit(1024KB+1024KB) => is this value stored in System param 0x3FC000 ?

Thanks,
Patrick

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

Re: Flash-Map 4096KB User/System param

Postby ESP_Faye » Wed Mar 02, 2016 10:49 am

Hi,

1. The blank.bin at starts at 0xFE000 and has 4096 Bytes.. what is the reason for this?
I thought the User param is only for storing user-settings via system_param_save_with_protect() ?
What data is saved in this two 4KB blocks?
->
User parameter area is set by users, you can use the 0xFE000, or you can use other available space to save user data.
System parameter area is the last 16KB bytes of Flash, it is for SDK internal use.

2.the bootloader 1.5 shows me "SPI Flash Site & Map: 32Mbit(1024KB+1024KB) => is this value stored in System param 0x3FC000 ?
-> Yes. System parameter area is the last 16KB bytes of Flash, in your case, it starts from 0x3FC000.

valmik thakar
Posts: 13
Joined: Thu Jun 30, 2016 7:53 pm

Re: Flash-Map 4096KB User/System param

Postby valmik thakar » Wed Feb 08, 2017 5:03 pm

Hi,

system parameter area can erase by application developer?
For test this in my esp8266 wroom 2 module, erase 0x3fc000 sector. API for erase sector returns ok status but then module wake from previous set configurations of wifi even i did not set any configurations.

And for my project I have used eagle.app.v6.new.1024.app1.ld file. In this file, system parameter area are on 0xfb000. unfortunately I have used this location for my project application purpose. But every thing is working fine. No any issue i got for flash operation.

Can you give information about system parameter area. i have use ESP RTOS 1.4.0 SDK.

thanks and regards,
valmik thakar

valmik thakar
Posts: 13
Joined: Thu Jun 30, 2016 7:53 pm

Re: Flash-Map 4096KB User/System param

Postby valmik thakar » Wed Feb 08, 2017 6:52 pm

Hi,
i have test again by erasing whole 16kb flash system parameter area. Previously I just erase 4 KB from 0x3fc000.
After erase last 16 kb all data are erased and esp wake up in soft-ap mode with ESP_XXXXXX (where XXXXXX is last 6 digits of mac) ssid with open security.
But I have noticed that when i was erase flash and not set any mode then for first time device boot up with previously configured device but again reboot board then flash is erased perfectly and boot up in soft ap mode.

Can any one explain me about this behavior?

thanks and regards,
valmik thakar

Who is online

Users browsing this forum: No registered users and 3 guests