Free RAM in ESP-WROOM-02 Wifi Module

ritesh
Posts: 29
Joined: Thu Nov 05, 2015 4:32 pm
Location: India
Contact:

Free RAM in ESP-WROOM-02 Wifi Module

Postby ritesh » Thu Jan 07, 2016 12:31 pm

Hi,

I have flashed AT Firmware 0.50 which is based on SDK 1.4.0. Now, I want to know howmych RAM is freed based on following informations.

ets Jan 8 2013,rst cause:1, boot mode:(3,7)



load 0x40100000, len 28076, room 16

tail 12

chksum 0x66

ho 0 tail 12 room 4

load 0x3ffe8000, len 2004, room 12

tail 8

chksum 0x3b

load 0x3ffe87e0, len 5120, room 0

tail 0

chksum 0x97

csum 0x97


Does anyone has idea about how IRAM and DRAM is allocated and howmuch RAM is freed for ESP-WROOM-02 Wifi Module?

Regards,
Ritesh Prajapati
Regards,
Ritesh Prajapati

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

Re: Free RAM in ESP-WROOM-02 Wifi Module

Postby ESP_Faye » Fri Jan 08, 2016 11:41 am

Hi,

You can call system_get_free_heap_size() in the user_init, to get the size of free heap. It is about 45~50 KB.

Thanks for your interest in ESP8266 !

ritesh
Posts: 29
Joined: Thu Nov 05, 2015 4:32 pm
Location: India
Contact:

Re: Free RAM in ESP-WROOM-02 Wifi Module

Postby ritesh » Fri Jan 08, 2016 2:01 pm

Hi,

I have called "system_get_free_heap_size()" and got around 34208 Bytes. I want to know that "system_get_free_heap_size()" returns total size of DRAM and IRAM which are freed or only IRAM or DRMA which is freed?

Also, let me know how DRAM and IRAM is oragnized in ESP-WROOM-02 Wifi Module if anyone knows about it.

I want to understand how IRAM and DRMA is managed in this ESP-WROOM-02 Wifi Module.


Regards,
Ritesh Prajapati
Regards,
Ritesh Prajapati

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

Re: Free RAM in ESP-WROOM-02 Wifi Module

Postby ESP_Faye » Mon Jan 11, 2016 2:57 pm

Hi,

"system_get_free_heap_size()" gets the size of available DRAM.

For ESP8266_NONOS_SDK, IRAM stores the functions without "ICACHE_FLASH_ATTR". Other functions will be stored in Flash, and run in cache when it is called. More details in http://bbs.espressif.com/viewtopic.php?f=61&t=366&p=1345#p1345.

Thanks for your interest in ESP8266 !

ritesh
Posts: 29
Joined: Thu Nov 05, 2015 4:32 pm
Location: India
Contact:

Re: Free RAM in ESP-WROOM-02 Wifi Module

Postby ritesh » Tue Jan 12, 2016 6:19 pm

Hi,

Thanks for Reply.

SO, it seems like code without ICACHE_FLASH_ATTR stored in IRAM which is limited in size while code with ICACHE_FLASH_ATTR stored in CACHE Memory which is ROM and depends on SPI Flash Memory Size.

Currently, ESP-WROOM-02 has < 36KB of IRAM and 80 KB of DRAM so that User has to develop application in such a way to store less code in IRAM.

Regards,
Ritesh Prajapati
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: No registered users and 193 guests