Micom_Electric/마이컴_원칩
2014. 8. 8. 21:41
ATmega
memory use
http://jeelabs.org/2011/05/22/atmega-memory-use/
int freeRam () {
extern int __heap_start, *__brkval;
int v;
return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval);
}
이거면 충분하다. 경고 떠도 작동한다
추가 :
Debugging AVR dynamic memory allocation | Andys ...
2011. 1. 1. - The caveat to this is that an AVR MCU does not have much RAM available for you to use. Memory leaks due to poor coding have always been
http://andybrown.me.uk/wk/2011/01/01/debugging-avr-dynamic-memory-allocation/