ESP WROOM 02 : Flash size & MAP

parmar7725274
Posts: 21
Joined: Wed Jun 03, 2015 1:20 pm

ESP WROOM 02 : Flash size & MAP

Postby parmar7725274 » Mon Feb 15, 2016 1:40 am

Hi,

I'm trying to Flash ESP WROOM 02 Module, here is things I did.

According to data-sheet of ESP WROOM 02 module Flash size is 4MByte means 4096KByte which is equal to 32Mbit. Right ?
So, as per SDK Getting Started Guide v1.5 Flash map(No cloud Update) will be :
esp_init_data_default.bin --> 0x3FC000, blank.bin --> 0x3FE000, eagle.flash.bin --> 0x00000 and eagle.irom0text.bin --> 0x40000.

Before compilation. I changed value of irom0_0_seg of eagle.app.v6.ld to 0xC0000 and Its look like :
MEMORY
{
dport0_0_seg : org = 0x3FF00000, len = 0x10
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
iram1_0_seg : org = 0x40100000, len = 0x8000
irom0_0_seg : org = 0x40240000, len = 0xC0000
}


During compilation I choose option 6 for flash size & MAP. Using Flash tool i have write esp_init_data_default.bin, blank.bin, eagle.flash.bin and eagle.irom0text.bin to flash.

Now hare is a confusion. In firmware I used this API to print flash size and MAP which prints "Flash size 4M, MAP 256+256".

here is code snippet :

Code: Select all

    switch( system_get_flash_size_map() )
    {
    case 0 :
       os_printf("\n Flash size 4M, MAP - 256+256"); break;
    case 1 :
      os_printf("\n Flash size 2M"); break;
    case 2 :
       os_printf("\n Flash size 8M, MAP 512+ 512"); break;
    case 3 :
      os_printf("\n Flash size 16M, MAP 512+ 512"); break;
    case 4 :
      os_printf("\n Flash size 32M, MAP 512+ 512"); break;
    case 5 :
      os_printf("\n Flash size 16M, MAP 1024+ 1024"); break;
    case 6 :
      os_printf("\n Flash size 32M, MAP 1024+ 1024"); break;
    default :
       os_printf("\n Unknown size & Map.");
    }


As per my understanding It should print "Flash Size 32M, MAP 1024+1024" right ? Can any one know Reason ?
Is there anything I'm missing ?

Thanks & Regards,
Prakash P.

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

Re: ESP WROOM 02 : Flash size & MAP

Postby ESP_Faye » Tue Feb 16, 2016 9:07 pm

Hi,

Please use ESP Flash download toolhttp://bbs.espressif.com/viewtopic.php?f=57&t=433, and select the corresponding flash size.

If your problem is still unsolved, please provide the captured picture of ESP Flash download tool while downloading for debugging.

parmar7725274
Posts: 21
Joined: Wed Jun 03, 2015 1:20 pm

Re: ESP WROOM 02 : Flash size & MAP

Postby parmar7725274 » Sun Feb 28, 2016 7:02 pm

Hi Faye,

Thanks For reply, I'm using Flash download tool v2.4. and here is a log. And My development Environment is MAC OS X.

Flashing Firmware :

prakash:flash_download_tool_python2.6-2.7_wxpython3.0_release_v2.4_SOURCE parmar$ sudo esptool.py -p /dev/tty.SLAB_USBtoUART -b 9600 write_flash 0x3fe000 ../bin/clear/blank.bin 0x3fc000 ../bin/clear/esp_init_data_default.bin 0x00000 ../bin/server/eagle.flash.bin 0x40000 ../bin/server/eagle.irom0text.bin
Connecting...
Erasing flash...
Writing at 0x003fec00... (100 %)
Erasing flash...
Writing at 0x003fc000... (100 %)
Erasing flash...
Writing at 0x00007400... (100 %)
Erasing flash...
Writing at 0x0006d800... (100 %)

Leaving...


And Boot Message :
data : 0x3ffe8000 ~ 0x3ffe8374, len: 884
rodata: 0x3ffe8380 ~ 0x3ffe862c, len: 684
bss : 0x3ffe8630 ~ 0x3ffef480, len: 28240
heap : 0x3ffef480 ~ 0x3fffc000, len: 52096

Flash size 4M, MAP - 256+256mode : softAP(1a:fe:34:da:ee:61)
add if1
dhcp server start:(ip:10.10.10.1,mask:255.255.255.0,gw:10.10.10.1)
bcn 100


Hope will get response from you soon.

Thanks & Regards,
Prakash P.

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

Re: ESP WROOM 02 : Flash size & MAP

Postby ESP_Faye » Thu Mar 03, 2016 3:22 pm

Hi,

When you download the bin files into flash, you need to set the Flash size you needed. More details are in https://github.com/themadinventor/esptool.
In your case, you need to add "-fs 32m-c1" when downloading.

Thanks for your interest in ESP8266!

Who is online

Users browsing this forum: No registered users and 3 guests