Page 1 of 1
How to check current project's the resource(RAM, TEXT,HEAP etc.) usage statistics,
Posted: Wed Mar 29, 2017 12:50 pm
by panjikuai
How to check current project's the resource(RAM, TEXT,HEAP etc.) usage statistics,
there is no specific information was output after compiling .
Re: How to check current project's the resource(RAM, TEXT,HEAP etc.) usage statistics,
Posted: Wed Mar 29, 2017 7:15 pm
by BuddyCasino
You can check heap like this:
Code: Select all
ESP_LOGI(TAG, "RAM left %d", esp_get_free_heap_size());
To find out if you can reduce the FreeRTOS stack size of the currently executing task to free some memory you can query the high watermark like this:
Code: Select all
ESP_LOGI(TAG, "task stack: %d", uxTaskGetStackHighWaterMark(NULL));
I never ran into code size limitations with the 4MB of flash, so I don't know how to help with that.
Re: How to check current project's the resource(RAM, TEXT,HEAP etc.) usage statistics,
Posted: Fri Mar 31, 2017 11:56 am
by f.h-f.s.
Don't forget your 32bit aligned free space. xPortGetFreeHeapSizeTagged(MALLOC_CAP_32BIT)
VisualGDB gives you a memory utilization report after building your project. Which lists your used DATA_FLASH, INSTR_FLASH, INSTR_RAM and DATA_RAM. No idea how they do this though.
Re: How to check current project's the resource(RAM, TEXT,HEAP etc.) usage statistics,
Posted: Fri Mar 31, 2017 2:03 pm
by ESP_igrr
xtensa-esp32-elf-size build/app-name.elf maybe?
Re: How to check current project's the resource(RAM, TEXT,HEAP etc.) usage statistics,
Posted: Tue Apr 04, 2017 1:04 pm
by f.h-f.s.
Aah ok that works =D