[chbot] Does anyone know how much free memory an ESP32 has?

edwardsw at steadfast.co.nz edwardsw at steadfast.co.nz
Mon Sep 21 06:31:52 BST 2020


Hi

 

At run time with the various stacks and heap in use:

*	Explanation of different memory allocations: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/mem_alloc.html
*	Two functions for checking how much heap is free during operation: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/system.html#heap-memory

 

The spare space for code depends on the size of the memory partition and the size of your code.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/app_image_format.html

 

Wes

 

From: Chchrobotics <chchrobotics-bounces at lists.ourshack.com> On Behalf Of David Burkitt
Sent: Monday, 21 September 2020 4:25 PM
To: Christchurch Robotics <chchrobotics at lists.ourshack.com>
Subject: Re: [chbot] Does anyone know how much free memory an ESP32 has?

 

I'm using the esp-idf rather than arduino and I've gone over the 1MB boundry. I don't have any real indication of free memory though.

Dave

 

On Mon, 21 Sep 2020, 14:39 Charles Manning, <cdhmanning at gmail.com <mailto:cdhmanning at gmail.com> > wrote:

Thanks all

 

It sounds like there will be enough for my purposes (~150kB RAM + ~40kB code).

 

On Mon, Sep 21, 2020 at 9:22 AM Andrew Dachs <dachsa492 at gmail.com <mailto:dachsa492 at gmail.com> > wrote:

Sounds about right though I’m not sure you can go over the 1MB boundary with code. Ive not hit that yet so haven’t dug too deep. You can use it for filesystem but think code requires cached pages that is not in the arduino framework. 

Andy

 

Sent from my iPhone





On 21/09/2020, at 8:36 AM, Daniel Powell <danielvieway at hotmail.com <mailto:danielvieway at hotmail.com> > wrote:

 

While very rudimentary this may give you some impression. 

Using the Arduino IDE and WiFi library, specifically the WiFiClientTest (so full stack), no OTA on a 2mb esp32 pico (M5StickC). 


Sketch uses 633974 bytes (30%) of program storage space. Maximum is 2097152 bytes.

Global variables use 38760 bytes (11%) of dynamic memory, leaving 288920 bytes for local variables. Maximum is 327680 bytes.

Regards, 

Daniel. 

 

From: Chchrobotics <chchrobotics-bounces at lists.ourshack.com <mailto:chchrobotics-bounces at lists.ourshack.com> > On Behalf Of Charles Manning
Sent: Monday, 21 September 2020 7:50 AM
To: Christchurch Robotics <chchrobotics at lists.ourshack.com <mailto:chchrobotics at lists.ourshack.com> >
Subject: [chbot] Does anyone know how much free memory an ESP32 has?

 

Hi All

 

I expect there are some C-using ESP32 programmers out there...

 

I am thinking of doing some experiments with the ESP32 that will indeed quite a lot of RAM.

 

The ESP32s have 512bB of RAM (+ 8kB RTC RAM). but substantial amounts of that are used by the wireless stack(s).

 

DOes anyone know how much is left for application use?

 

Thanks

 

CHarles

 

_______________________________________________
Chchrobotics mailing list Chchrobotics at lists.ourshack.com <mailto:Chchrobotics at lists.ourshack.com> 
https://lists.ourshack.com/mailman/listinfo/chchrobotics
Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/
Meetings usually 3rd Monday each month. See http://kiwibots.org for venue, directions and dates.
When replying, please edit your Subject line to reflect new subjects.

_______________________________________________
Chchrobotics mailing list Chchrobotics at lists.ourshack.com <mailto:Chchrobotics at lists.ourshack.com> 
https://lists.ourshack.com/mailman/listinfo/chchrobotics
Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/
Meetings usually 3rd Monday each month. See http://kiwibots.org for venue, directions and dates.
When replying, please edit your Subject line to reflect new subjects.

_______________________________________________
Chchrobotics mailing list Chchrobotics at lists.ourshack.com <mailto:Chchrobotics at lists.ourshack.com> 
https://lists.ourshack.com/mailman/listinfo/chchrobotics
Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/
Meetings usually 3rd Monday each month. See http://kiwibots.org for venue, directions and dates.
When replying, please edit your Subject line to reflect new subjects.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/chchrobotics/attachments/20200921/7d0f52a6/attachment-0001.html>


More information about the Chchrobotics mailing list