altos/avr: Must leave space for init stack in ram
[fw/altos] / src / util / check-avr-mem
index c73edbd1e8f88ca1d3cda2f697b0a1b9312fe981..7956f0aa91ba4d9d84934bef576dc9a55e01649d 100644 (file)
@@ -2,8 +2,10 @@
 nm "$@" |
 grep ' N _end' |
 awk '{ iram = strtonum("0x" $1) % 0x10000;
-if ( iram > 0xaff) {
-       printf ("%d bytes of ram more than %d available\n", iram, 0xaff);
+if ( iram > 0xacf) {
+       printf ("%d bytes of ram more than %d available\n", iram, 0xacf);
        exit(1);
-} else
-       exit(0); }'
+} else {
+       printf("%d bytes of ram\n", iram);
+       exit(0);
+} }'