Arduino (IDE) not showing correct memory for global variables
Posted: Wed Dec 26, 2018 6:39 am
Hi,
I want to check the memory used by globals and wrote the below test code. However the below code shows no additional memory usage as compared to and empty sketch, why?
And how to find out the memory used by globals?
Thanks and Regards,
WI
I want to check the memory used by globals and wrote the below test code. However the below code shows no additional memory usage as compared to and empty sketch, why?
And how to find out the memory used by globals?
Thanks and Regards,
WI
Code: Select all
volatile char global_mem[16][40];
void setup() {
Serial.begin(115200);
for(uint16_t i=0;i<16;++i){
Serial.print(global_mem[i][i]);
}
}
void loop() {
}