Hi
I am using esp32doit-devkit-v1. When I build the sketch, I get following lines at the end:
DATA: [= ] 12.9% (used 42424 bytes from 327680 bytes)
PROGRAM: [====== ] 62.5% (used 819078 bytes from 1310720 bytes)
I am of the impression that this board has 4MB flash memory. But these line indicating that it has 1.3 MB and 0.32 MB Ram.
Is it usual and rest of the memory is used for some default configurations etc. ????
Also does it means I cannot update OTA as more than 50% memory is used????
Memory math
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
Re: Memory math
Hi Zeni241,
Allocation of flash memory is defined in partition table.
For default configuration of Arduino it covers space for OTA as well.
Check, e.g. viewtopic.php?f=19&t=4349&p=19383
Allocation of flash memory is defined in partition table.
For default configuration of Arduino it covers space for OTA as well.
Check, e.g. viewtopic.php?f=19&t=4349&p=19383
Re: Memory math
This is your IRAM memory. Programs run within IRAM and Cache.PROGRAM: [====== ] 62.5% (used 819078 bytes from 1310720 bytes)
The Cache allows your program to (effectively) use the slower 4MB FLASH as program memory.
This is your DRAM memory, your variables & constants.DATA: [= ] 12.9% (used 42424 bytes from 327680 bytes)
There are also ESP modules with slower PSRAM which you may use if you run out of avriable memory.
So, you can OTA. On startup the selected partition will be loaded to IRAM. Your OTA partition may also keep code > IRAM size in FLASH and run that code via the Cache.
Alternatively you can disable Cache and so gain more IRAM.
& I also believe that IDF CAN should be fixed.
Re: Memory math
Thanks a lot guys for such quick response . Its a relief that I can update through OTA. I should learn more about partition tables etc.
Who is online
Users browsing this forum: No registered users and 93 guests