Hello,
I am trying to solve an Arduino memory usage issue (Atmega 32u4) and I’m using your library. I notice that there’s a big difference between the results of MEMORY_PRINT_FREERAM and FREERAM_PRINT macros. The first one doesn’t seem to correspond to the rest of the results (shown below). Would you be able to tell me why this might be ? Thanks very much for your time !
Free ram :-175 <<result from MEMORY_PRINT_FREERAM
Free Ram Size : 1309 <<result from FREERAM_PRINT
+----------------+ 256 (__data_start)
+ data +
+ variables + size = 562
+----------------+ 818 (__data_end / __bss_start)
+ bss +
+ variables + size = 665
+----------------+ 1483 (__bss_end / __heap_start)
+ heap + size = 0
+----------------+ 1483 (__brkval if not 0, or __heap_start)
+ +
+ +
+ FREE RAM + size = 1308
+ +
+ +
+----------------+ 2791 (SP)
+ stack + size = 25
+----------------+ 2815 (RAMEND / __stack)