how to calculate free ram?
Posted: Mon Oct 04, 2021 4:58 pm
I would just know the available ram in the execution of programm as for example:
but for esp32 wrover B
ps: i'm french
thanks for help
Code: Select all
int freeRam()
{
extern int __heap_start, *__brkval;
int v;
return (int)&v - (__brkval == 0 ? (int)&__heap_start : (int)__brkval);
}
ps: i'm french
thanks for help