Another esp question
I came across a piece of code in a program that calculates how much memory is available for data acquisition.
The code quotes 'freeRam' as a variable, the compiler rejects it and says it hasnt been defined, and obviously the program doesnt define it either.
I've updated my core and tried different esp boards, but cant get it to work.
Looking on the net there is very little info on arduino freeRam.
I rem'd out the line with the if statement and the code compiles & runs, but I get less memory than expected.
Any ideas?
I came across a piece of code in a program that calculates how much memory is available for data acquisition.
The code quotes 'freeRam' as a variable, the compiler rejects it and says it hasnt been defined, and obviously the program doesnt define it either.
I've updated my core and tried different esp boards, but cant get it to work.
Looking on the net there is very little info on arduino freeRam.
I rem'd out the line with the if statement and the code compiles & runs, but I get less memory than expected.
Any ideas?
Code:
//Get free RAM
freeRAM = system_get_free_heap_size();
if (freeRAM < lowestRAM ) lowestRAM = freeRAM;
Serial.print(" freeRAM : ");
Serial.print(freeRAM);
Serial.println(" bytes ");
Last edited: